diff --git a/.vscode/extensions.json b/.vscode/extensions.json index af6acce36f3..ec9f0d8c8b7 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -5,6 +5,7 @@ "esbenp.prettier-vscode", "redhat.vscode-yaml", "unifiedjs.vscode-mdx", - "bradlc.vscode-tailwindcss" + "bradlc.vscode-tailwindcss", + "streetsidesoftware.code-spell-checker" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 2f34d250f61..20c2d88d7af 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -42,5 +42,8 @@ }, "python.analysis.typeCheckingMode": "basic", "dotnet.automaticallyCreateSolutionInWorkspace": false, - "dotnet.testWindow.disableAutoDiscovery": true -} + "dotnet.testWindow.disableAutoDiscovery": true, + "cSpell.import": [ + "cspell.json" + ] +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3625a6b3b11..ee46bca62f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -105,7 +105,7 @@ To build a CLI that communicates with Fern's development cloud environment, run Once the CLI has been built, you can navigate to any `fern` folder and invoke it by running ```sh -FERN_NO_VERSION_REDIRECTION=true node //packages/cli/cli/dist/dev/cli.cjsn +FERN_NO_VERSION_REDIRECTION=true node //packages/cli/cli/dist/dev/cli.cjs ```
@@ -121,7 +121,7 @@ in the generator. ### Generator Testing -**Note**: Please make sure that the docker daemon is running before running commands below. +**Note**: Please make sure that the docker daemon is running before running commands below. To test our generators we have built a CLI called seed. diff --git a/cspell-words.txt b/cspell-words.txt new file mode 100644 index 00000000000..cc3fd494aad --- /dev/null +++ b/cspell-words.txt @@ -0,0 +1,636 @@ +aadd +abarrell +abelardo +abvthecity +acked +aclassify +addtl +adelete +adriana +agateno +agentic +aget +ajgateno +alice +allocationa +amckinney +amespac +ansi +antoniomdk +anyio +APAC +apihandlers +APIV +apng +appveyor +aread +armando +armandobelardo +artifactory +asearch +assemblyai +assertj +astimezone +asyncio +atlassian +atwooddc +aupdate +Authorisation +Avenir +axios +Axios +BAAI +babbage* +babbagedocs +BAML +Benzo +Bhargava +bing +bitnami +Bkey +Blandie +Blandy +blueprintjs +boto +bsinghvi +bufio +buie +buildvcs +buildx +Bvalue +BYOT +Cartesia +Cartesia's +Ccomparison +CCPA +CCPA +certifi +Cexample +Chalef +chan +chardet +chatv +chdeskur +Chdeskur +circleci +CIRCLECI +clazz +cmdrc +CMMC +cobo +cobo +colorama +connormahon34 +Contoso +Convolutional +COPPA +COPPA +couldn +covcheck +cread +creds +Crequest +Crestor +csharp +csharpier +Csrf +customizer +cyclomaticcomplexity +CYGPATTERN +Dafoe +dannysheridan +Danwakeem +darwin +dateutils +davecgh +davidkonigsberg +dealiased +dealiasing +dearmor +deconflict +deconfliction +dedupe +Deel +definitionid +deno +descs +devrev +DEVREV +Dfile +DICOM +Discrimimants +disney +dists +Dorg +dprint +dsinghvi +dtstart +Dtstart +Dunkerque +duplicative +Duplicative +ecommerce +edrevo +EEXIST +EMEA +endent +errormsg +esac +esnext +esutils +etag +Etag +ethbtc +ethdai +etheur +ethgbp +ethsgd +ethusd +ETIMEDOUT +eula +evelyn +exctb +fabubaker +faciliate +faqs +faraday +fastavro +fasterxml +favourite +FDRAPIV +fernapi +ferndevtest +fernir +FERPA +FERPA +fhir +Fhir +FHIR +fhirpath +Fhirpath +FINRA +FISMA +FISMA +FLAC +flowise +forw +franciscosolis +franklinharvey +fred +friday +friendsofphp +fset +Gantt +GAPI +Gare +Gdrive +gemini +genproto +george +getenv +Gett +getzep +Ginnis +GLBA +goexec +gofmt +gograph +goog +gopkg +gospec +gradlew +groq +GUIDS +guzzlehttp +HATEOAS +Hauptbahnhof +Hayao +Hdvcmsu +hmac +HMAC +HNSW +HOTP +hrefs +htmls +httpx +HTTPX +hume +hvac +HVAC +iana +iata +iban +icao +icns +Identitical +idgen +idna +ietf +imdb +imdbclient +impls +inforce +infty +initializers +insteadof +ints +Invalidenstraße +isin +isinstance +isnt +isort +ITAR +jamsadr +Janessa +Jayaswal +jdoe +jefferson +jenv +jersy +jfif +jfrog +jhpak +jmedway +jochs +joeschmoe +jokiness +jose +journaled +jrbwp +jsdom +jsonable +jsonify +Jsonify +jsonld +jupiter +jwks +Katex +kbps +Kenzo +keyid +keyof +KHTML +kikones +Korolenko +Kosaraju +kwarg +kwargs +LATAM +layerfi +LCEL +ldflags +linkedin +linq +Linq +LINQ +linux +llms +localns +lrcusd +LSTM +ltcbch +ltcbtc +ltceth +ltcusd +maticusd +matt +mbue +mdast +mdxjs +MENA +mikemilla +minaelee +mintlify +Mintlify +mintlify's +misflagged +Miyazaki +mktime +mmolash +mockito +MPLS +mrlint +mscolnick +MSRP +msys +MVVM +mwalbeck +mydomain +mypackage +mypy +mypy's +nameof +nanos +ndjson +neeeeeeeeeed +neopets +ngrok +nint +nodets +nofocus +noindex +noopener +nopycln +noqa +Nord +noreferrer +Nort +Nort's +npmjs +nuint +numpy +numpydoc +nunit +NUNIT +nupkg +nuuids +objc +objx +Octo +odata +oganizations +Oidc +okhttp +Okhttp +OkHttp +OKHTTP +OkHttp's +Okio +Olamina +omarrida +omnibox +oneof +Oneof +openai +Openai +OPENAI +openrpc +Openrpc +openstruct +openxmlformats +opicional +Origina +osano +OSSAPI +OSSRH +ostruct +OURCYGPATTERN +oxtbtc +oxteth +oxtusd +palantir +payg +Paylod +permissioned +perserv +Phila +phpstan +pirsch +Pirsch +pjpeg +pkce +plex +plugh +pmezard +POSTOHG +ppod +prefs +println +Println +printoper +prkint +propogate +protobuf +protoc +protos +pujitm +Pydanic +Pydanitc's +pydantic +Pydantic +PYDANTIC +Pydantic's +pyenv +PYENV +pygments +Pylance +pypi +Pypi +PYPI +pyproject +pyright +Pyright +pytest +Pytest +Pythonic +pythonv +pyuploadcare +rbpt +RDBMS +rdmd +recategorize +recategorized +recents +redocly +Redocly +REDOCLY +referencers +referencial +referer +reinstantiate +Repici +rerank +rfid +rgrc +rohin +Rohin +ROOTDIRSRAW +Rqwiqn +rrule +Rrule +RRULE +Rubo +rubocop +Rubocop +Ruult +saas +samsung +Sayari +sbue +SCIM +SCIM +sdkman +SDKMAN +serde +Serde +sess +Shiki +shivammathur +shouldnt +shrek +slugified +Slugified +sniffio +Snipppet +snxusd +sonatype +sqlite +squareup +squidex +storjusd +stretchr +Stringifier +stringifiying +suger +sutp +svgz +sysprop +tailwindcss +Teis +templ +thollander +tiangolo +tina +tmpl +Tokenid +TOTP +trevorblades +trippable +trivago +tsconfg +ttlock +twilio +typeddicts +typer +typesript +uber +UIDS +unaliased +Unarchived +unbolded +uncategorize +Uncategorize +uncategorized +UNCATEGORIZED +Uncommment +undici +undiscriminated +Undiscriminated +UNDISCRIMINATED +ungap +uninvite +unioned +unioning +unist +unmarshal +unnamespaced +unsanitized +unserviced +Unsets +unsnooze +unsuffixed +untabbed +unthemed +untransform +updateduk +upserted +utdodtn +utdsp +uuid +Uuid +uuids +uuidv +uutd +Vapi +vectorizing +venus +Vercel +versionof +Versionto +virtualenvs +VISITEE +vite +Vitest +Vlaue +vmcontext +vread +waivable +WEBP +websocat +WEBVTT +wednesday +whatwg +Whatwg +WHATWG +whos +wifi +Willem +williamluer +workerd +workos +Xdock +Xdoclint +xlink +XMPP +yale +yardoc +Yardoc +yfiusd +yoyo +zachkirsch +zecbch +zecbtc +zeceth +zecltc +zecusd +zrxusd +zurg +Zurg +zurg's +execa +jakarta +strenum +dotenv +alberto +fsmonitor +EDITMSG +folderb +folderd +folderc +noauth +noreqbody +inlinedrequests +pathparam +queryparam +inlinedrequest +vercel +vitest +AMPM +nvmrc +jiti +tsup +esbuild +depcheckrc +fibonacci +deel +apiture +aries +belvo +ntropy +oair +nextjs +starlette +urllib +TWRGXXWS +COBQKQ +ATYA +FACYFZIR +msvc +BUXRGCBT +KLRTSR +GGHE +IMHG +QUFHNP +IHGUMUOY +OQRDWB +WXCSO \ No newline at end of file diff --git a/cspell.json b/cspell.json new file mode 100644 index 00000000000..b28d3eedd01 --- /dev/null +++ b/cspell.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", + "version": "0.2", + "dictionaryDefinitions": [ + { + "name": "project-words", + "path": "./cspell-words.txt", + "addWords": true + } + ], + "caseSensitive": true, + "allowCompoundWords": true, + "dictionaries": [ + "project-words" + ], + "ignorePaths": [ + "./seed/*/*/*", + ".git", + ".vscode", + "**/__snapshots__/**", + "**/__test__/**/fixtures", + "**/__test__/**/output", + "**/__test__/**/outputs", + "**/.next", + "**/.pnp.*", + "**/.turbo", + "**/.yarn", + "**/*.tsbuildinfo", + "**/build", + "**/dist", + "**/generated", + "**/lib", + "**/node_modules", + "**/out", + "**/storybook-static", + "/project-words.txt", + "fern/vale-styles", + "pnpm-lock.yaml", + "**/generate/fixtures", + "**/__test__/**/*.json", + "fern/apis/fhir/definition/__package__.yml", + "packages/cli/cli/build.*.cjs" + ] +} \ No newline at end of file diff --git a/docs-yml.schema.json b/docs-yml.schema.json index ca8aa3c8697..cca51272598 100644 --- a/docs-yml.schema.json +++ b/docs-yml.schema.json @@ -612,7 +612,7 @@ "items": { "$ref": "#/definitions/docs.FeatureFlag" }, - "description": "A list of feature flags. If any of the feature flags are satisifed, we will show all content." + "description": "A list of feature flags. If any of the feature flags are satisfied, we will show all content." } ] }, @@ -1835,7 +1835,7 @@ } ] }, - "docs.UntabbedNavigationConifg": { + "docs.UntabbedNavigationConfig": { "type": "array", "items": { "$ref": "#/definitions/docs.NavigationItem" @@ -1878,7 +1878,7 @@ "docs.NavigationConfig": { "anyOf": [ { - "$ref": "#/definitions/docs.UntabbedNavigationConifg" + "$ref": "#/definitions/docs.UntabbedNavigationConfig" }, { "$ref": "#/definitions/docs.TabbedNavigationConfig" diff --git a/fern-docs.schema.json b/fern-docs.schema.json index 50f2c851505..ed4261068ca 100644 --- a/fern-docs.schema.json +++ b/fern-docs.schema.json @@ -696,7 +696,7 @@ } ] }, - "docs.UntabbedNavigationConifg": { + "docs.UntabbedNavigationConfig": { "type": "array", "items": { "$ref": "#/definitions/docs.NavigationItem" @@ -731,7 +731,7 @@ "docs.NavigationConfig": { "oneOf": [ { - "$ref": "#/definitions/docs.UntabbedNavigationConifg" + "$ref": "#/definitions/docs.UntabbedNavigationConfig" }, { "$ref": "#/definitions/docs.TabbedNavigationConfig" diff --git a/fern/apis/docs-yml/definition/docs.yml b/fern/apis/docs-yml/definition/docs.yml index 368c4a64df6..de09e64ca66 100644 --- a/fern/apis/docs-yml/definition/docs.yml +++ b/fern/apis/docs-yml/definition/docs.yml @@ -186,7 +186,7 @@ types: changelog: "changelog" ``` - This will look for markdown files in the `/fern/changelog` directory, which should contain files named like + This will look for markdown files in the `/fern/changelog` directory, which should contain files named like - `/fern/changelog/2024-04-29.mdx`. - `/fern/changelog/2023-01-02.mdx`. @@ -197,7 +197,7 @@ types: private: type: optional docs: This config option is no longer used. Please reach out to the Fern Team if you want to enable private docs. - availability: deprecated + availability: deprecated "edit-this-page": type: optional docs: | @@ -260,10 +260,10 @@ types: NavigationConfig: discriminated: false union: - - UntabbedNavigationConifg + - UntabbedNavigationConfig - TabbedNavigationConfig - UntabbedNavigationConifg: list + UntabbedNavigationConfig: list TabbedNavigationConfig: type: list @@ -450,7 +450,7 @@ types: orphaned: type: optional docs: When `orphaned` is set to `true`, the roles will not inherit from parents. - + FeatureFlag: properties: flag: @@ -462,16 +462,16 @@ types: match: type: optional docs: The value that the feature flag should match for the content to be shown. If not specified, content is shown when the flag is true. - + FeatureFlagConfiguration: discriminated: false - union: + union: - type: string - docs: The name of the feature flag, We assume that it is a boolean feature flag that needs to be evaluated to true. + docs: The name of the feature flag, We assume that it is a boolean feature flag that needs to be evaluated to true. - type: FeatureFlag - docs: A single feature flag with a configurable name, fallback value, and match value. Especially useful for non boolean feature flags. + docs: A single feature flag with a configurable name, fallback value, and match value. Especially useful for non boolean feature flags. - type: list - docs: A list of feature flags. If any of the feature flags are satisifed, we will show all content. + docs: A list of feature flags. If any of the feature flags are satisfied, we will show all content. WithFeatureFlags: properties: @@ -485,7 +485,7 @@ types: If the `name` is not supplied, Fern will default it to a generated name that will be used to reference your custom font in the eventually injected CSS in the docs. path: type: optional - docs: The relative path of the font file. To define multiple weight and style varations of the same font, use `paths` instead. + docs: The relative path of the font file. To define multiple weight and style variations of the same font, use `paths` instead. weight: type: optional docs: | @@ -593,7 +593,7 @@ types: "api-name": type: optional docs: Name of API that we are referencing - openrpc: + openrpc: type: optional docs: Path to an openrpc spec. availability: pre-release @@ -736,7 +736,7 @@ types: accent-primary: type: optional docs: | - The primary accent color is used for buttons, links, and other interactive elements. + The primary accent color is used for buttons, links, and other interactive elements. @default: #818CF8 diff --git a/fern/apis/fhir/definition/__package__.yml b/fern/apis/fhir/definition/__package__.yml index 99216e22d0f..a2afa3f96d5 100644 --- a/fern/apis/fhir/definition/__package__.yml +++ b/fern/apis/fhir/definition/__package__.yml @@ -2340,7 +2340,7 @@ types: docs: Amount of medication per unit of time. type: optional Population: - docs: A populatioof people with some set of grouping criteria. + docs: A population of people with some set of grouping criteria. properties: id: docs: Unique id for the element within a resource (for internal references). @@ -4507,7 +4507,7 @@ types: (including cannot change the meaning of modifierExtension itself). type: optional> label: - docs: Describes the purpose of this example amoung the set of examples. + docs: Describes the purpose of this example among the set of examples. type: optional valueBase64Binary: docs: The actual value for the element, which must be one of the types allowed @@ -5125,7 +5125,7 @@ types: and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -6497,7 +6497,7 @@ types: docs: Description of of processing. type: optional procedure: - docs: Procesing code. + docs: Processing code. type: optional additive: docs: Substance added during processing. @@ -6590,8 +6590,8 @@ types: BiologicallyDerivedProductStorageScale: docs: Temperature scale used. enum: - - name: farenheit - value: farenheit + - name: fahrenheit + value: fahrenheit - name: celsius value: celsius - name: kelvin @@ -12754,7 +12754,7 @@ types: scope. type: optional> contentDefinition: - docs: Precusory content developed with a focus and intent of supporting the + docs: Precursory content developed with a focus and intent of supporting the formation a Contract instance, which may be associated with and transformable into a Contract. type: optional @@ -12836,11 +12836,11 @@ types: type: optional> type: type: CodeableConcept - docs: Precusory content structure and use, i.e., a boilerplate, template, + docs: Precursory content structure and use, i.e., a boilerplate, template, application for a contract such as an insurance policy or benefits under a program, e.g., workers compensation. subType: - docs: Detailed Precusory content type. + docs: Detailed Precursory content type. type: optional publisher: docs: The individual or organization that published the Contract precursor @@ -12925,7 +12925,7 @@ types: type: optional> offer: type: ContractOffer - docs: The matter of concern in the context of this provision of the agrement. + docs: The matter of concern in the context of this provision of the agreement. asset: docs: Contract Term Asset List. type: optional> @@ -13469,7 +13469,7 @@ types: type: optional performer: docs: Indicates who or what is being asked to perform (or not perform) the - ction. + action. type: optional performerLinkId: docs: Id [identifier??] of the clause or question text related to the reason @@ -13879,7 +13879,7 @@ types: properties: resourceType: literal<"CoverageEligibilityRequest"> identifier: - docs: A unique identifier assigned to this coverage eligiblity request. + docs: A unique identifier assigned to this coverage eligibility request. type: optional> status: docs: The status of the resource instance. @@ -13983,7 +13983,7 @@ types: docs: Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data. appliesToAll: - docs: The supporting materials are applicable for all detail items, product/servce + docs: The supporting materials are applicable for all detail items, product/service categories and specific billing codes. type: optional CoverageEligibilityRequestInsurance: @@ -14919,7 +14919,7 @@ types: type: optional> type: type: CodeableConcept - docs: Code that specifies the property DeviceDefinitionPropetyCode (Extensible). + docs: Code that specifies the property DeviceDefinitionPropertyCode (Extensible). valueQuantity: docs: Property value as a quantity. type: optional> @@ -15047,7 +15047,7 @@ types: type: optional> deviceIdentifier: docs: The identifier that is to be associated with every Device that references - this DeviceDefintiion for the issuer and jurisdication porvided in the DeviceDefinition.udiDeviceIdentifier. + this DeviceDefintiion for the issuer and jurisdication provided in the DeviceDefinition.udiDeviceIdentifier. type: optional issuer: docs: The organization that assigns the identifier algorithm. @@ -15208,7 +15208,7 @@ types: type: optional> type: type: CodeableConcept - docs: Code that specifies the property DeviceDefinitionPropetyCode (Extensible). + docs: Code that specifies the property DeviceDefinitionPropertyCode (Extensible). valueQuantity: docs: Property value as a quantity. type: optional> @@ -15658,7 +15658,7 @@ types: docs: Indicates another resource whose existence justifies this DeviceUseStatement. type: optional> bodySite: - docs: Indicates the anotomic location on the subject's body where the device + docs: Indicates the anatomic location on the subject's body where the device was used ( i.e. the target). type: optional note: @@ -15871,7 +15871,7 @@ types: type: optional author: docs: Identifies who is the author of the manifest. Manifest author is not - necessarly the author of the references included. + necessarily the author of the references included. type: optional> recipient: docs: A patient, practitioner, or organization for which this set of documents @@ -15940,7 +15940,7 @@ types: DocumentReference: docs: A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope - of a document is any seralized object with a mime-type, so includes formal patient + of a document is any serialized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text. extends: BaseResource @@ -16023,7 +16023,7 @@ types: DocumentReferenceRelatesTo: docs: A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope - of a document is any seralized object with a mime-type, so includes formal patient + of a document is any serialized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text. properties: @@ -16072,7 +16072,7 @@ types: DocumentReferenceContent: docs: A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope - of a document is any seralized object with a mime-type, so includes formal patient + of a document is any serialized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text. properties: @@ -16112,7 +16112,7 @@ types: DocumentReferenceContext: docs: A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope - of a document is any seralized object with a mime-type, so includes formal patient + of a document is any serialized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text. properties: @@ -16265,7 +16265,7 @@ types: that can be useful for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -16304,7 +16304,7 @@ types: exposure for the research. outcome: type: Reference - docs: A reference to a EvidenceVariable resomece that defines the outcome + docs: A reference to a EvidenceVariable resource that defines the outcome for the research. sampleSize: docs: A description of the size of the sample involved in the synthesis. @@ -16684,7 +16684,7 @@ types: docs: The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services - was from an external organization (which may be billed seperately) for an + was from an external organization (which may be billed separately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy. type: optional @@ -17414,7 +17414,7 @@ types: categorization of the module that can be useful for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -17556,7 +17556,7 @@ types: for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -17584,7 +17584,7 @@ types: for the research. type: optional> outcome: - docs: A reference to a EvidenceVariable resomece that defines the outcome + docs: A reference to a EvidenceVariable resource that defines the outcome for the research. type: optional> EvidenceStatus: @@ -17705,7 +17705,7 @@ types: that can be useful for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -19239,7 +19239,7 @@ types: line is intended to replace. type: optional> subDetailSequence: - docs: The sequence number of the sub-details woithin the details within the + docs: The sequence number of the sub-details within the details within the claim item which this line is intended to replace. type: optional> provider: @@ -23187,7 +23187,7 @@ types: type: optional> type: type: CodeableConcept - docs: Type of benefit (primary care; speciality care; inpatient; outpatient). + docs: Type of benefit (primary care; specialty care; inpatient; outpatient). requirement: docs: The referral requirements to have access/coverage for this benefit. type: optional @@ -23382,7 +23382,7 @@ types: type: optional> type: type: CodeableConcept - docs: Type of specific benefit (preventative; primary care office visit; speciality + docs: Type of specific benefit (preventative; primary care office visit; specialty office visit; hospitalization; emergency room; urgent care). cost: docs: List of the costs associated with a specific benefit. @@ -23778,7 +23778,7 @@ types: and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -24292,7 +24292,7 @@ types: for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -26664,7 +26664,7 @@ types: type: optional> marketingStatus: docs: Marketing status of the medicinal product, in contrast to marketing - authorizaton. + authorization. type: optional> pharmaceuticalProduct: docs: Pharmaceutical aspects of product. @@ -26693,7 +26693,7 @@ types: product. type: optional> manufacturingBusinessOperation: - docs: An operation applied to the product, for manufacturing or adminsitrative + docs: An operation applied to the product, for manufacturing or administrative purpose. type: optional> specialDesignation: @@ -26772,7 +26772,7 @@ types: type: optional type: type: Coding - docs: Idenifying type for this part of the name (e.g. strength part). + docs: Identifying type for this part of the name (e.g. strength part). MedicinalProductCountryLanguage: docs: Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). @@ -26850,7 +26850,7 @@ types: docs: Regulatory authorization date. type: optional confidentialityIndicator: - docs: To indicate if this proces is commercially confidential. + docs: To indicate if this process is commercially confidential. type: optional manufacturer: docs: The manufacturer or establishment associated with the process. @@ -26945,7 +26945,7 @@ types: of day, month and year shall be specified using the ISO 8601 date format. type: optional dataExclusivityPeriod: - docs: A period of time after authorization before generic product applicatiosn + docs: A period of time after authorization before generic product applications can be submitted. type: optional dateOfFirstAuthorization: @@ -27055,7 +27055,7 @@ types: docs: Date of procedure. type: optional application: - docs: Applcations submitted to obtain a marketing authorization. + docs: Applications submitted to obtain a marketing authorization. type: optional> MedicinalProductContraindication: docs: The clinical particulars - indications, contraindications etc. of a medicinal @@ -28631,7 +28631,7 @@ types: (including cannot change the meaning of modifierExtension itself). type: optional> score: - docs: Invidual data point representing the GQ (genotype quality) score threshold. + docs: Individual data point representing the GQ (genotype quality) score threshold. type: optional> numTP: docs: The number of true positives if the GQ score threshold was set to "score" @@ -30516,7 +30516,7 @@ types: docs: Visiting or postal addresses for the contact. type: optional
OrganizationAffiliation: - docs: Defines an affiliation/assotiation/relationship between 2 distinct oganizations, + docs: Defines an affiliation/association/relationship between 2 distinct organizations, that is not a part-of relationship/sub-division relationship. extends: BaseResource properties: @@ -31447,7 +31447,7 @@ types: for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -33803,7 +33803,7 @@ types: that can be useful for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -33839,7 +33839,7 @@ types: exposureAlternative for the research. type: optional outcome: - docs: A reference to a ResearchElementDefinition resomece that defines the + docs: A reference to a ResearchElementDefinition resource that defines the outcome for the research. type: optional ResearchDefinitionStatus: @@ -33985,7 +33985,7 @@ types: that can be useful for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -34677,7 +34677,7 @@ types: that can be useful for filtering and searching. type: optional> author: - docs: An individiual or organization primarily involved in the creation and + docs: An individual or organization primarily involved in the creation and maintenance of the content. type: optional> editor: @@ -34712,7 +34712,7 @@ types: type: optional outcome: type: Reference - docs: A reference to a EvidenceVariable resomece that defines the outcome + docs: A reference to a EvidenceVariable resource that defines the outcome for the research. sampleSize: docs: A description of the size of the sample involved in the synthesis. @@ -42452,7 +42452,7 @@ types: docs: The healthcare professional responsible for authorizing the prescription. lensSpecification: docs: Contain the details of the individual lens specifications and serves - as the authorization for the fullfillment by certified professionals. + as the authorization for the fulfilment by certified professionals. type: list VisionPrescriptionLensSpecification: docs: An authorization for the provision of glasses and/or contact lenses to a @@ -42745,13 +42745,13 @@ types: MUST always interpret the externalId as scoped to the provisioning domain. type: optional accessPolicy: - docs: The access policy for the user within the project memebership. + docs: The access policy for the user within the project membership. type: optional access: docs: Extended access configuration using parameterized access policies. type: optional> userConfiguration: - docs: The user configuration for the user within the project memebership such + docs: The user configuration for the user within the project membership such as menu links, saved searches, and features. type: optional admin: diff --git a/fern/pages/api-definition/fern-definition/endpoints/bytes.mdx b/fern/pages/api-definition/fern-definition/endpoints/bytes.mdx index 20672d09424..052b70cdebd 100644 --- a/fern/pages/api-definition/fern-definition/endpoints/bytes.mdx +++ b/fern/pages/api-definition/fern-definition/endpoints/bytes.mdx @@ -9,45 +9,45 @@ subtitle: Use the `bytes` type to handle binary data in your API ## Sending bytes -If your API needs to send a stream of bytes (i.e. typical for assets like audio, images and other files) then -you can use the `bytes` type in the Fern Definition to model this. +If your API needs to send a stream of bytes (i.e. typical for assets like audio, images and other files) then +you can use the `bytes` type in the Fern Definition to model this. ```yml audio.yml -service: +service: base-path: /audio - endpoints: - upload: + endpoints: + upload: display-name: Upload audio method: POST path: /upload content-type: application/octet-stream - request: + request: type: bytes docs: The bytes of the MP3 file that you would like to upload ``` ## Receiving bytes -On the other hand, if your API is returning a stream of bytes, then you can leverage the `bytes` type as a response. +On the other hand, if your API is returning a stream of bytes, then you can leverage the `bytes` type as a response. ```yml textToSpeech.yml -service: +service: base-path: /tts - endpoints: - upload: + endpoints: + upload: display-name: Upload audio method: POST path: "" - request: + request: name: TTSRequest - body: - properties: - text: + body: + properties: + text: type: string - docs: The text that you want converted to speach. - response: + docs: The text that you want converted to speech. + response: type: bytes - docs: The bytes of the audio file. + docs: The bytes of the audio file. ``` diff --git a/fern/pages/api-definition/openapi/extensions/audiences.mdx b/fern/pages/api-definition/openapi/extensions/audiences.mdx index 4dfa35605a5..8bd80fc5fc9 100644 --- a/fern/pages/api-definition/openapi/extensions/audiences.mdx +++ b/fern/pages/api-definition/openapi/extensions/audiences.mdx @@ -3,11 +3,11 @@ title: Use audiences to filter your API subtitle: Use `x-fern-audiences` to filter to relevant endpoints, schemas and properties --- -Audiences are a useful tool for segmenting your API for different consumers. Common examples of audiences include `public` -and `beta`. +Audiences are a useful tool for segmenting your API for different consumers. Common examples of audiences include `public` +and `beta`. - Remember to filter your SDKs and Docs after specifying audiences. If **no audiences** are specified, + Remember to filter your SDKs and Docs after specifying audiences. If **no audiences** are specified, nothing will be filtered. @@ -21,7 +21,7 @@ groups: audiences: - public generators: - - name: fernapi/fern-tyepscript-node-sdk + - name: fernapi/fern-typescript-node-sdk version: 0.8.8 ``` diff --git a/fern/pages/api-definition/openapi/extensions/others.mdx b/fern/pages/api-definition/openapi/extensions/others.mdx index 66f8041a4ef..0416eb5251c 100644 --- a/fern/pages/api-definition/openapi/extensions/others.mdx +++ b/fern/pages/api-definition/openapi/extensions/others.mdx @@ -298,7 +298,7 @@ shown in the third tab. x-fern-sdk-method-name: get ``` - ```yaml title="Overlayed OpenAPI" {4-5} + ```yaml title="Overlaid OpenAPI" {4-5} paths: /users: get: diff --git a/fern/pages/changelogs/cli/2023-09-17.mdx b/fern/pages/changelogs/cli/2023-09-17.mdx index 319cf069250..a630af6c590 100644 --- a/fern/pages/changelogs/cli/2023-09-17.mdx +++ b/fern/pages/changelogs/cli/2023-09-17.mdx @@ -1,3 +1,3 @@ ## 0.15.0-rc21 -**`(chore):`** - Only set GA availablity if explicitly defined in the API Definition (@dsinghvi) +**`(chore):`** - Only set GA availability if explicitly defined in the API Definition (@dsinghvi) diff --git a/fern/pages/changelogs/cli/2023-12-06.mdx b/fern/pages/changelogs/cli/2023-12-06.mdx index 970d133c27c..c24cb0b8ccb 100644 --- a/fern/pages/changelogs/cli/2023-12-06.mdx +++ b/fern/pages/changelogs/cli/2023-12-06.mdx @@ -1,6 +1,6 @@ ## 0.15.12 **`(chore):`** ## What's Changed -* internal: seed supports configurable ouptut mode by @dsinghvi in https://github.com/fern-api/fern/pull/2430 +* internal: seed supports configurable output mode by @dsinghvi in https://github.com/fern-api/fern/pull/2430 * internal: add examples to literal-headers test definition by @amckinney in https://github.com/fern-api/fern/pull/2437 * internal: seed fixtures are dynamic by @amckinney in https://github.com/fern-api/fern/pull/2440 * documentation: broken links in quickstart by @dannysheridan in https://github.com/fern-api/fern/pull/2444 diff --git a/fern/pages/changelogs/cli/2024-03-05.mdx b/fern/pages/changelogs/cli/2024-03-05.mdx index 4102a1657ed..c606d4daaeb 100644 --- a/fern/pages/changelogs/cli/2024-03-05.mdx +++ b/fern/pages/changelogs/cli/2024-03-05.mdx @@ -15,7 +15,7 @@ * (feature): leverage OpenAPI extension `x-tags` for schemas by @dsinghvi in https://github.com/fern-api/fern/pull/3081 * (fix, typescript): serialize optional deep object query params correctly in the TypeScript SDK by @dsinghvi in https://github.com/fern-api/fern/pull/3071 * (fix, ruby): Ensure the name passed into the `X-Fern-SDK-Name` header is the name of the gem, not the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073 -* (fix, typescript): sdk code snippets dont render empty dicts for parameters with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074 +* (fix, typescript): sdk code snippets don't render empty dicts for parameters with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074 * (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072 * (chore, internal): move `docs-config` to use local typescript sdk gen by @abvthecity in https://github.com/fern-api/fern/pull/3047 * (feature, beta): support reading `changelog` dir from api directory by @dsinghvi in https://github.com/fern-api/fern/pull/3075 diff --git a/fern/pages/changelogs/cli/2024-04-30.mdx b/fern/pages/changelogs/cli/2024-04-30.mdx index de95ed0e77d..b7f5ae49fa3 100644 --- a/fern/pages/changelogs/cli/2024-04-30.mdx +++ b/fern/pages/changelogs/cli/2024-04-30.mdx @@ -1,14 +1,14 @@ ## 0.23.2 **`(chore):`** ## What's Changed * improvement: throw a better error when an invalid version is used by @armandobelardo in https://github.com/fern-api/fern/pull/3477 -* (fix, go): Discrimninated unions always include discriminant by @amckinney in https://github.com/fern-api/fern/pull/3479 +* (fix, go): Discriminated unions always include discriminant by @amckinney in https://github.com/fern-api/fern/pull/3479 * (internal, feat): add mode to seed for running the generators directly from source by @dsinghvi in https://github.com/fern-api/fern/pull/3421 * (fix, docs): improve docs overview by @dsinghvi in https://github.com/fern-api/fern/pull/3480 * (docs, quickstart): rewrite the docs quickstart by @dsinghvi in https://github.com/fern-api/fern/pull/3481 * docs: add pages for api reference navigation and summary markdown by @abvthecity in https://github.com/fern-api/fern/pull/3482 * (chore): parse file upload and their descriptions by @dsinghvi in https://github.com/fern-api/fern/pull/3485 * (feature, go): Add cursor and offset pagination by @amckinney in https://github.com/fern-api/fern/pull/3486 -* (fix): redo docs for accordion, accorodion groups, callouts, card groups, etc. by @dsinghvi in https://github.com/fern-api/fern/pull/3489 +* (fix): redo docs for accordion, accordion groups, callouts, card groups, etc. by @dsinghvi in https://github.com/fern-api/fern/pull/3489 * (fix, docs): document frames and endpoint req/res snippets by @dsinghvi in https://github.com/fern-api/fern/pull/3490 diff --git a/fern/pages/changelogs/cli/2024-05-02.mdx b/fern/pages/changelogs/cli/2024-05-02.mdx index 87cbd7fc332..5a05a38e559 100644 --- a/fern/pages/changelogs/cli/2024-05-02.mdx +++ b/fern/pages/changelogs/cli/2024-05-02.mdx @@ -4,7 +4,7 @@ * (fix): support parsing path parameters in asyncapi v2 by @dsinghvi in https://github.com/fern-api/fern/pull/3505 * (internal, test): Stop testing IR generation snapshots by @dsinghvi in https://github.com/fern-api/fern/pull/3508 * fix, python: pipe through the whole kit and caboodle for inlined unions by @armandobelardo in https://github.com/fern-api/fern/pull/3507 -* fix, python: the SDK generator now generates disciminated unions correctlly by @armandobelardo in https://github.com/fern-api/fern/pull/3509 +* fix, python: the SDK generator now generates discriminated unions correctly by @armandobelardo in https://github.com/fern-api/fern/pull/3509 * internal: release python generator RC by @armandobelardo in https://github.com/fern-api/fern/pull/3510 * fix, ts, python: snippet template paper cuts by @armandobelardo in https://github.com/fern-api/fern/pull/3511 * (fix, ts): Prefer user-provided examples by @amckinney in https://github.com/fern-api/fern/pull/3496 diff --git a/fern/pages/changelogs/cli/2024-05-08.mdx b/fern/pages/changelogs/cli/2024-05-08.mdx index 20c676829c3..a9608534e6d 100644 --- a/fern/pages/changelogs/cli/2024-05-08.mdx +++ b/fern/pages/changelogs/cli/2024-05-08.mdx @@ -21,7 +21,7 @@ * (feat, express): add `skipRequestValidation` configuration to the express generator by @dsinghvi in https://github.com/fern-api/fern/pull/3560 * (fix) [wip] java empty response body instead of null by @dcb6 in https://github.com/fern-api/fern/pull/3545 * Document new `background` prop for `Frame` component by @KenzoBenzo in https://github.com/fern-api/fern/pull/3559 -* (improvment, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563 +* (improvement, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563 * (docs) consolidate code snippets and code block markdown pages by @abvthecity in https://github.com/fern-api/fern/pull/3562 * fix: deduplicate image filepaths to upload by @abvthecity in https://github.com/fern-api/fern/pull/3564 * (fix, internal): seed exits when docker fails to build by @dsinghvi in https://github.com/fern-api/fern/pull/3568 diff --git a/fern/pages/changelogs/cli/2024-05-21.mdx b/fern/pages/changelogs/cli/2024-05-21.mdx index 81ad595d7ee..173cbb95bc3 100644 --- a/fern/pages/changelogs/cli/2024-05-21.mdx +++ b/fern/pages/changelogs/cli/2024-05-21.mdx @@ -2,7 +2,7 @@ **`(chore):`** ## What's Changed * (feature): Add support for default values and validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640 * improvement: add in config to enrich pypi metadata by @armandobelardo in https://github.com/fern-api/fern/pull/3660 -* (fix, chsarp): `.csproj` generation includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659 +* (fix, csharp): `.csproj` generation includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659 **Full Changelog**: https://github.com/fern-api/fern/compare/0.27.0...0.27.1-rc0 diff --git a/fern/pages/changelogs/cli/2024-05-24.mdx b/fern/pages/changelogs/cli/2024-05-24.mdx index e86e2813dd8..6ad53a64069 100644 --- a/fern/pages/changelogs/cli/2024-05-24.mdx +++ b/fern/pages/changelogs/cli/2024-05-24.mdx @@ -8,7 +8,7 @@ * docs changed trivial anchor text by @atwooddc in https://github.com/fern-api/fern/pull/3687 * docs: unbolded sections for seo by @atwooddc in https://github.com/fern-api/fern/pull/3686 * docs: api definition docs and mdx descriptions for seo by @atwooddc in https://github.com/fern-api/fern/pull/3685 -* (fix, csharp): scan `EnumMember` annotations when serializaing to string by @dsinghvi in https://github.com/fern-api/fern/pull/3688 +* (fix, csharp): scan `EnumMember` annotations when serializing to string by @dsinghvi in https://github.com/fern-api/fern/pull/3688 * fix, python: request bodies respect literals again by @armandobelardo in https://github.com/fern-api/fern/pull/3689 * (fix, python): support endpoint method names by @dsinghvi in https://github.com/fern-api/fern/pull/3690 * (fix, csharp): inlined requests that are 1:1 with HTTP bodies now have JSON annotations by @dsinghvi in https://github.com/fern-api/fern/pull/3691 diff --git a/fern/pages/changelogs/cli/2024-07-03.mdx b/fern/pages/changelogs/cli/2024-07-03.mdx index 06dacdacdaa..85bd614d90b 100644 --- a/fern/pages/changelogs/cli/2024-07-03.mdx +++ b/fern/pages/changelogs/cli/2024-07-03.mdx @@ -5,7 +5,7 @@ * fix, python: allow offsets to start at 0 by @armandobelardo in https://github.com/fern-api/fern/pull/3972 * fix: python pagination helper types now share generic type by @armandobelardo in https://github.com/fern-api/fern/pull/3973 * chore: update python seed after generator-cli update by @armandobelardo in https://github.com/fern-api/fern/pull/3974 -* (charp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6 in https://github.com/fern-api/fern/pull/3975 +* (csharp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6 in https://github.com/fern-api/fern/pull/3975 * (java, improvement): change default `JsonInclude` behavior by @dcb6 in https://github.com/fern-api/fern/pull/3978 * (csharp, fix): base client requests not generated by @dcb6 in https://github.com/fern-api/fern/pull/3976 * chore: plumb through ruby snippets config to FDR by @armandobelardo in https://github.com/fern-api/fern/pull/3980 diff --git a/fern/pages/changelogs/cli/2024-07-10.mdx b/fern/pages/changelogs/cli/2024-07-10.mdx index 3952a201d54..ba8df10d5fe 100644 --- a/fern/pages/changelogs/cli/2024-07-10.mdx +++ b/fern/pages/changelogs/cli/2024-07-10.mdx @@ -7,7 +7,7 @@ * (chore): add xml type by @chdeskur in https://github.com/fern-api/fern/pull/4025 * fix: (regression) parseDocsConfiguration accidentally calls loadAllPages with absolutePathToDocsConfig by @abvthecity in https://github.com/fern-api/fern/pull/4026 * (feature, typescript): Add offset step pagination with IRv48 by @amckinney in https://github.com/fern-api/fern/pull/4028 -* csharp, fix, feature, improvment: Target .NET Standard + Framework, fix various bugs, many small improvements by @dcb6 in https://github.com/fern-api/fern/pull/4030 +* csharp, fix, feature, improvement: Target .NET Standard + Framework, fix various bugs, many small improvements by @dcb6 in https://github.com/fern-api/fern/pull/4030 * fix: update unchecked base model to not coerce none by @armandobelardo in https://github.com/fern-api/fern/pull/4029 * fix: unreserve `set` name for python methods by @armandobelardo in https://github.com/fern-api/fern/pull/4031 * add in swift to seed runner by @armandobelardo in https://github.com/fern-api/fern/pull/4034 diff --git a/fern/pages/changelogs/cli/2024-09-15.mdx b/fern/pages/changelogs/cli/2024-09-15.mdx index 43791be39a6..a15effc2c63 100644 --- a/fern/pages/changelogs/cli/2024-09-15.mdx +++ b/fern/pages/changelogs/cli/2024-09-15.mdx @@ -1,7 +1,7 @@ ## 0.41.14-rc1 **`(feat):`** Running `fern check` will now check to confirm that the generator versions you are running are compatible with your Fern CLI version. -Each version of SDK generators depends on a version of a libary that is exported by the Fern CLI, and as a result, each generator has a minimum +Each version of SDK generators depends on a version of a library that is exported by the Fern CLI, and as a result, each generator has a minimum compatible version of the Fern CLI. As an example, if you were to run `fern check` while leveraging `fernapi/fern-python-sdk` version `2.0.0`, on CLI version `0.1.3`, you'd receive the following error: `The generator fernapi/fern-python-sdk requires CLI version 0.23.0-rc4 or later (current version: 0.1.3-rc0).` diff --git a/fern/pages/changelogs/cli/2024-09-23.mdx b/fern/pages/changelogs/cli/2024-09-23.mdx index 1290d4391ba..c23ae08e832 100644 --- a/fern/pages/changelogs/cli/2024-09-23.mdx +++ b/fern/pages/changelogs/cli/2024-09-23.mdx @@ -1,5 +1,5 @@ ## 0.42.15 -**`(internal):`** The documentation resolver now approrpiately creates a unique identifier for changelog sections. Previously, if you had multiple +**`(internal):`** The documentation resolver now appropriately creates a unique identifier for changelog sections. Previously, if you had multiple changelogs within the same section, despite their title and slug being different, they would be treated as the same section since the ID only took into account the parents' slug, appended the word "changelog" and that was all. diff --git a/fern/pages/changelogs/cli/2024-11-06.mdx b/fern/pages/changelogs/cli/2024-11-06.mdx index 1fa6cac4b18..185d25a4b94 100644 --- a/fern/pages/changelogs/cli/2024-11-06.mdx +++ b/fern/pages/changelogs/cli/2024-11-06.mdx @@ -1,5 +1,5 @@ ## 0.45.0-rc33 -**`(feat):`** The Fern CLI now supports roles and viewers in your docs configuration, if you are on the enteprise plan for docs: +**`(feat):`** The Fern CLI now supports roles and viewers in your docs configuration, if you are on the enterprise plan for docs: ```yml docs.ym roles: diff --git a/fern/pages/changelogs/cli/2025-01-16.mdx b/fern/pages/changelogs/cli/2025-01-16.mdx index 8b1129e59e8..3c334e3717f 100644 --- a/fern/pages/changelogs/cli/2025-01-16.mdx +++ b/fern/pages/changelogs/cli/2025-01-16.mdx @@ -1,6 +1,6 @@ ## 0.50.4 -**`(internal):`** The docs.yml now supports a separate configurtation for `feature-flags` which allows Fern to render -pieces of content depending on whether or not certain feature flags are enabled for particular user. +**`(internal):`** The docs.yml now supports a separate configuration for `feature-flags` which allows Fern to render +pieces of content depending on whether or not certain feature flags are enabled for particular user. This feature is in alpha stage; please contact support@buildwithfern.com to learn more! diff --git a/fern/pages/changelogs/cli/2025-01-17.mdx b/fern/pages/changelogs/cli/2025-01-17.mdx index e6d9f07759d..85b88d5d320 100644 --- a/fern/pages/changelogs/cli/2025-01-17.mdx +++ b/fern/pages/changelogs/cli/2025-01-17.mdx @@ -1,4 +1,4 @@ ## 0.50.6 -**`(fix):`** The broken link checker is updated to reduce false positives. +**`(fix):`** The broken link checker is updated to reduce false positives. diff --git a/fern/pages/changelogs/cli/2025-01-18.mdx b/fern/pages/changelogs/cli/2025-01-18.mdx index b501efe6727..8d053aaabf6 100644 --- a/fern/pages/changelogs/cli/2025-01-18.mdx +++ b/fern/pages/changelogs/cli/2025-01-18.mdx @@ -1,5 +1,5 @@ ## 0.50.7 -**`(fix):`** The OpenRPC parser now respects method names as well as tags for +**`(fix):`** The OpenRPC parser now respects method names as well as tags for organization the navigation. diff --git a/fern/pages/changelogs/cli/2025-01-19.mdx b/fern/pages/changelogs/cli/2025-01-19.mdx index 9aa1bf08b39..5b582668de7 100644 --- a/fern/pages/changelogs/cli/2025-01-19.mdx +++ b/fern/pages/changelogs/cli/2025-01-19.mdx @@ -1,5 +1,5 @@ ## 0.50.9 -**`(fix):`** The Fern CLI no longer logs the full API request when finishing docs registration, +**`(fix):`** The Fern CLI no longer logs the full API request when finishing docs registration, reducing unnecessary log output. diff --git a/fern/pages/changelogs/cli/2025-01-21.mdx b/fern/pages/changelogs/cli/2025-01-21.mdx index 6d425c61df2..0c77a89d45f 100644 --- a/fern/pages/changelogs/cli/2025-01-21.mdx +++ b/fern/pages/changelogs/cli/2025-01-21.mdx @@ -1,5 +1,5 @@ ## 0.50.14 -**`(fix):`** Fixes a bug where duplicate types in undiscriminated unions (`oneOf` in OpenAPI) +**`(fix):`** Fixes a bug where duplicate types in undiscriminated unions (`oneOf` in OpenAPI) were not being deduped, which could lead to invalid generated code. diff --git a/fern/pages/changelogs/cli/2025-01-22.mdx b/fern/pages/changelogs/cli/2025-01-22.mdx index a0a3cff8f8a..237f9c48861 100644 --- a/fern/pages/changelogs/cli/2025-01-22.mdx +++ b/fern/pages/changelogs/cli/2025-01-22.mdx @@ -1,5 +1,5 @@ ## 0.50.17 -**`(fix):`** Improve performance of `fern docs dev` by only reloading the markdown content when +**`(fix):`** Improve performance of `fern docs dev` by only reloading the markdown content when only markdown files are changed, avoiding unnecessary recompilation of the full docs. diff --git a/fern/pages/changelogs/cli/2025-01-23.mdx b/fern/pages/changelogs/cli/2025-01-23.mdx index 893872806b3..ff93500eb51 100644 --- a/fern/pages/changelogs/cli/2025-01-23.mdx +++ b/fern/pages/changelogs/cli/2025-01-23.mdx @@ -1,5 +1,5 @@ ## 0.51.2 -**`(fix):`** Improved error messages when docs.yml doesn't match schema by showing more specific +**`(fix):`** Improved error messages when docs.yml doesn't match schema by showing more specific validation errors and including the path where the error occurred. diff --git a/fern/pages/changelogs/cli/2025-01-27.mdx b/fern/pages/changelogs/cli/2025-01-27.mdx index addec53b763..9c029229a50 100644 --- a/fern/pages/changelogs/cli/2025-01-27.mdx +++ b/fern/pages/changelogs/cli/2025-01-27.mdx @@ -1,5 +1,5 @@ ## 0.51.5 -**`(fix):`** Added a new rule to validate frontmatter parsing across markdown files, ensuring frontmatter +**`(fix):`** Added a new rule to validate frontmatter parsing across markdown files, ensuring frontmatter is properly formatted and can be parsed without errors. diff --git a/fern/pages/changelogs/csharp-sdk/2024-11-05.mdx b/fern/pages/changelogs/csharp-sdk/2024-11-05.mdx index 27f494a1a8e..fee193cef1c 100644 --- a/fern/pages/changelogs/csharp-sdk/2024-11-05.mdx +++ b/fern/pages/changelogs/csharp-sdk/2024-11-05.mdx @@ -1,3 +1,3 @@ ## 1.9.0 -**`(feat):`** Add support for calling HTTP endpoints and gRPC endoints within the same service. +**`(feat):`** Add support for calling HTTP endpoints and gRPC endpoints within the same service. diff --git a/fern/pages/changelogs/go-fiber/2023-11-08.mdx b/fern/pages/changelogs/go-fiber/2023-11-08.mdx index 20e3c66e1d0..28b2a4ae115 100644 --- a/fern/pages/changelogs/go-fiber/2023-11-08.mdx +++ b/fern/pages/changelogs/go-fiber/2023-11-08.mdx @@ -1,5 +1,5 @@ ## 0.9.1 **`(fix):`** Support boolean literals. -**`(fix):`** Union subt-ypes with no properties are now go 1.13 compatible. +**`(fix):`** Union subtypes with no properties are now go 1.13 compatible. diff --git a/fern/pages/changelogs/go-fiber/2024-08-19.mdx b/fern/pages/changelogs/go-fiber/2024-08-19.mdx index 9ddfc791a1f..cff13698a6e 100644 --- a/fern/pages/changelogs/go-fiber/2024-08-19.mdx +++ b/fern/pages/changelogs/go-fiber/2024-08-19.mdx @@ -2,5 +2,5 @@ **`(fix):`** Fix literal value deserialization. ### What's changed -- Updates object and undisriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. +- Updates object and undiscriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. diff --git a/fern/pages/changelogs/go-model/2023-11-08.mdx b/fern/pages/changelogs/go-model/2023-11-08.mdx index 20e3c66e1d0..28b2a4ae115 100644 --- a/fern/pages/changelogs/go-model/2023-11-08.mdx +++ b/fern/pages/changelogs/go-model/2023-11-08.mdx @@ -1,5 +1,5 @@ ## 0.9.1 **`(fix):`** Support boolean literals. -**`(fix):`** Union subt-ypes with no properties are now go 1.13 compatible. +**`(fix):`** Union subtypes with no properties are now go 1.13 compatible. diff --git a/fern/pages/changelogs/go-model/2024-08-19.mdx b/fern/pages/changelogs/go-model/2024-08-19.mdx index 9ddfc791a1f..cff13698a6e 100644 --- a/fern/pages/changelogs/go-model/2024-08-19.mdx +++ b/fern/pages/changelogs/go-model/2024-08-19.mdx @@ -2,5 +2,5 @@ **`(fix):`** Fix literal value deserialization. ### What's changed -- Updates object and undisriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. +- Updates object and undiscriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. diff --git a/fern/pages/changelogs/go-sdk/2023-11-08.mdx b/fern/pages/changelogs/go-sdk/2023-11-08.mdx index 20e3c66e1d0..28b2a4ae115 100644 --- a/fern/pages/changelogs/go-sdk/2023-11-08.mdx +++ b/fern/pages/changelogs/go-sdk/2023-11-08.mdx @@ -1,5 +1,5 @@ ## 0.9.1 **`(fix):`** Support boolean literals. -**`(fix):`** Union subt-ypes with no properties are now go 1.13 compatible. +**`(fix):`** Union subtypes with no properties are now go 1.13 compatible. diff --git a/fern/pages/changelogs/go-sdk/2024-08-19.mdx b/fern/pages/changelogs/go-sdk/2024-08-19.mdx index 9ddfc791a1f..cff13698a6e 100644 --- a/fern/pages/changelogs/go-sdk/2024-08-19.mdx +++ b/fern/pages/changelogs/go-sdk/2024-08-19.mdx @@ -2,5 +2,5 @@ **`(fix):`** Fix literal value deserialization. ### What's changed -- Updates object and undisriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. +- Updates object and undiscriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. diff --git a/fern/pages/changelogs/java-sdk/2024-02-04.mdx b/fern/pages/changelogs/java-sdk/2024-02-04.mdx index f4292adaa27..caf33aebf3e 100644 --- a/fern/pages/changelogs/java-sdk/2024-02-04.mdx +++ b/fern/pages/changelogs/java-sdk/2024-02-04.mdx @@ -14,7 +14,7 @@ var response = imdb.ticket.purchase("theatre-id", IdempotentRequestOptions.build **`(feat):`** The SDK generator now supports scanning API credentials - via environment varaibles. + via environment variables. ```java Imdb imdb = Imdb.builder() .apiKey("...") // defaults to System.getenv("IMDB_API_KEY") diff --git a/fern/pages/changelogs/java-sdk/2024-09-05.mdx b/fern/pages/changelogs/java-sdk/2024-09-05.mdx index fb40ee78501..f4e6d42cf30 100644 --- a/fern/pages/changelogs/java-sdk/2024-09-05.mdx +++ b/fern/pages/changelogs/java-sdk/2024-09-05.mdx @@ -9,7 +9,7 @@ generators: ``` -**`(feat):`** Generated builder methods now enforce non-null checks for required fields, ensuring that all required +**`(feat):`** Generated builder methods now enforce non-null checks for required fields, ensuring that all required fields are properly validated during object construction: ```java @java.lang.Override diff --git a/fern/pages/changelogs/java-sdk/2024-12-10.mdx b/fern/pages/changelogs/java-sdk/2024-12-10.mdx index 7a36665e135..e9d35e63a64 100644 --- a/fern/pages/changelogs/java-sdk/2024-12-10.mdx +++ b/fern/pages/changelogs/java-sdk/2024-12-10.mdx @@ -1,5 +1,5 @@ ## 2.4.0 -**`(feat):`** We now support overriding sdk package prefixes by adding a "package-prefix" key under the java-sdk generator +**`(feat):`** We now support overriding sdk package prefixes by adding a "package-prefix" key under the java-sdk generator configuration. diff --git a/fern/pages/changelogs/java-sdk/2025-01-23.mdx b/fern/pages/changelogs/java-sdk/2025-01-23.mdx index 99560ff36df..96d8a10b4e0 100644 --- a/fern/pages/changelogs/java-sdk/2025-01-23.mdx +++ b/fern/pages/changelogs/java-sdk/2025-01-23.mdx @@ -1,5 +1,5 @@ ## 2.10.7 -**`(fix):`** Fix wrapped requests without inline path parameters checking not rendering +**`(fix):`** Fix wrapped requests without inline path parameters checking not rendering no-request endpoint because of non-optional parameters diff --git a/fern/pages/changelogs/java-spring/2024-02-03.mdx b/fern/pages/changelogs/java-spring/2024-02-03.mdx index b90982b2514..5c6dde1b075 100644 --- a/fern/pages/changelogs/java-spring/2024-02-03.mdx +++ b/fern/pages/changelogs/java-spring/2024-02-03.mdx @@ -1,3 +1,3 @@ ## 0.6.1 -**`(fix):`** Intialize this changelog +**`(fix):`** Initialize this changelog diff --git a/fern/pages/changelogs/java-spring/2024-09-05.mdx b/fern/pages/changelogs/java-spring/2024-09-05.mdx index 352e18d69a7..ddc5a508af4 100644 --- a/fern/pages/changelogs/java-spring/2024-09-05.mdx +++ b/fern/pages/changelogs/java-spring/2024-09-05.mdx @@ -9,7 +9,7 @@ generators: ``` -**`(feat):`** Generated builder methods now enforce non-null checks for required fields, ensuring that all required +**`(feat):`** Generated builder methods now enforce non-null checks for required fields, ensuring that all required fields are properly validated during object construction: ```java @java.lang.Override diff --git a/fern/pages/changelogs/openapi/2024-03-24.mdx b/fern/pages/changelogs/openapi/2024-03-24.mdx index adca6d12e91..ac11c766fa2 100644 --- a/fern/pages/changelogs/openapi/2024-03-24.mdx +++ b/fern/pages/changelogs/openapi/2024-03-24.mdx @@ -1,4 +1,4 @@ ## 0.0.32 -**`(fix):`** The generated OpenAPI spec now takes into account global path parameters. +**`(fix):`** The generated OpenAPI spec now takes into account global path parameters. diff --git a/fern/pages/changelogs/openapi/2024-09-25.mdx b/fern/pages/changelogs/openapi/2024-09-25.mdx index e91f240a8b4..ec97f8b9951 100644 --- a/fern/pages/changelogs/openapi/2024-09-25.mdx +++ b/fern/pages/changelogs/openapi/2024-09-25.mdx @@ -1,6 +1,6 @@ ## 0.1.0 -**`(chore):`** The OpenAPI generator now uses version 53 of the IR (previously was on version 23). You -will need to upgrade your Fern CLI to the latest to run this version of the OpenAPI -generator. +**`(chore):`** The OpenAPI generator now uses version 53 of the IR (previously was on version 23). You +will need to upgrade your Fern CLI to the latest to run this version of the OpenAPI +generator. diff --git a/fern/pages/changelogs/openapi/2024-10-06.mdx b/fern/pages/changelogs/openapi/2024-10-06.mdx index ea07e2b8b86..064efeaddbb 100644 --- a/fern/pages/changelogs/openapi/2024-10-06.mdx +++ b/fern/pages/changelogs/openapi/2024-10-06.mdx @@ -1,4 +1,4 @@ ## 0.1.5 -**`(fix):`** The generator now adds paraemter level examples for global parameters. +**`(fix):`** The generator now adds parameter level examples for global parameters. diff --git a/fern/pages/changelogs/python-sdk/2024-04-24.mdx b/fern/pages/changelogs/python-sdk/2024-04-24.mdx index aa2a7d5b4c6..f22fd71ec23 100644 --- a/fern/pages/changelogs/python-sdk/2024-04-24.mdx +++ b/fern/pages/changelogs/python-sdk/2024-04-24.mdx @@ -2,7 +2,7 @@ **`(fix):`** pin mypy dependency to 1.9.0 to prevent introducing upstream bugs ### What's been fixed -- Set `mypy` dev depenency in generated `pyproject.toml` to `1.9.0`. This prevents upstream `mypy` bugs from affecting user builds. Note that this is only a dev dependency, so it does not affect the behavior of the SDK. +- Set `mypy` dev dependency in generated `pyproject.toml` to `1.9.0`. This prevents upstream `mypy` bugs from affecting user builds. Note that this is only a dev dependency, so it does not affect the behavior of the SDK. - Temporarily disable unit test generation. ### What's changed diff --git a/fern/pages/changelogs/python-sdk/2024-05-20.mdx b/fern/pages/changelogs/python-sdk/2024-05-20.mdx index 08d61f5ee39..70e6e359a0e 100644 --- a/fern/pages/changelogs/python-sdk/2024-05-20.mdx +++ b/fern/pages/changelogs/python-sdk/2024-05-20.mdx @@ -2,5 +2,5 @@ **`(fix):`** Inline request parameters now deconflict in naming with the unnamed path parameter arguments. ### What's been fixed -- Inline request parameters now deconflict in naming with the unnamed path parameter arguments. Previously, when inlining request parameters into the method signature, we would not deconflict naming with the unnamed args preceeding them. Now, conflicting unnamed parameters are post-fixed with an "_". +- Inline request parameters now deconflict in naming with the unnamed path parameter arguments. Previously, when inlining request parameters into the method signature, we would not deconflict naming with the unnamed args preceding them. Now, conflicting unnamed parameters are post-fixed with an "_". diff --git a/fern/pages/changelogs/python-sdk/2024-06-27.mdx b/fern/pages/changelogs/python-sdk/2024-06-27.mdx index 6c67af79e8d..d66103b63a2 100644 --- a/fern/pages/changelogs/python-sdk/2024-06-27.mdx +++ b/fern/pages/changelogs/python-sdk/2024-06-27.mdx @@ -1,6 +1,6 @@ ## 2.14.0-rc1 -**`(fix):`** The fix from 2.5.2 is now case-insentitive +**`(fix):`** The fix from 2.5.2 is now case-insensitive ### What's been fixed -- the fix from 2.5.2 is now case-insentitive Recap of 2.5.2: `Fix: Support `list`SDK method names instead of defaulting to`list\_`.` +- the fix from 2.5.2 is now case-insensitive Recap of 2.5.2: `Fix: Support `list`SDK method names instead of defaulting to`list\_`.` diff --git a/fern/pages/changelogs/python-sdk/2024-09-10.mdx b/fern/pages/changelogs/python-sdk/2024-09-10.mdx index 85681f00f74..de266def057 100644 --- a/fern/pages/changelogs/python-sdk/2024-09-10.mdx +++ b/fern/pages/changelogs/python-sdk/2024-09-10.mdx @@ -1,5 +1,5 @@ ## 4.0.0-rc3 -**`(fix):`** Pydantic models now call update forward refs on non-uion circular references. This +**`(fix):`** Pydantic models now call update forward refs on non-union circular references. This prevents runtime errors in certain cases where types self reference itself through a union. diff --git a/fern/pages/changelogs/python-sdk/2024-09-11.mdx b/fern/pages/changelogs/python-sdk/2024-09-11.mdx index 3e5f77caf20..2a4b9f46ee3 100644 --- a/fern/pages/changelogs/python-sdk/2024-09-11.mdx +++ b/fern/pages/changelogs/python-sdk/2024-09-11.mdx @@ -1,5 +1,5 @@ ## 4.0.0-rc6 -**`(fix):`** Pydantic models now call update forward refs on non-uion circular references. This +**`(fix):`** Pydantic models now call update forward refs on non-union circular references. This prevents runtime errors in certain cases where types self reference itself through a union. diff --git a/fern/pages/changelogs/python-sdk/2024-09-17.mdx b/fern/pages/changelogs/python-sdk/2024-09-17.mdx index 7918f978da3..c130652c8df 100644 --- a/fern/pages/changelogs/python-sdk/2024-09-17.mdx +++ b/fern/pages/changelogs/python-sdk/2024-09-17.mdx @@ -1,5 +1,5 @@ ## 4.2.4 **`(fix):`** Datetime examples are generated correctly once again. -The `pydantic_utilites` file is python 3.8 compatible. +The `pydantic_utilities` file is python 3.8 compatible. diff --git a/fern/pages/changelogs/python-sdk/2025-01-06.mdx b/fern/pages/changelogs/python-sdk/2025-01-06.mdx index e6b2bf3a7eb..5040e39a009 100644 --- a/fern/pages/changelogs/python-sdk/2025-01-06.mdx +++ b/fern/pages/changelogs/python-sdk/2025-01-06.mdx @@ -1,4 +1,4 @@ ## 4.3.11 -**`(fix):`** pyproject.toml now has a `[project]` block making it Poetry v2 compatible. +**`(fix):`** pyproject.toml now has a `[project]` block making it Poetry v2 compatible. diff --git a/fern/pages/changelogs/ts-express/2025-01-27.mdx b/fern/pages/changelogs/ts-express/2025-01-28.mdx similarity index 100% rename from fern/pages/changelogs/ts-express/2025-01-27.mdx rename to fern/pages/changelogs/ts-express/2025-01-28.mdx diff --git a/fern/pages/docs/developer-tools/cursor.mdx b/fern/pages/docs/developer-tools/cursor.mdx index ac3dcb2639d..c7f3885232b 100644 --- a/fern/pages/docs/developer-tools/cursor.mdx +++ b/fern/pages/docs/developer-tools/cursor.mdx @@ -9,7 +9,7 @@ title: Cursor ## Using Cursor with Fern -To optimize your experience with Cursor, you can add instructions to Cursor's system settings: +To optimize your experience with Cursor, you can add instructions to Cursor's system settings: @@ -29,7 +29,7 @@ Here's an example of a `.cursorrules` file used by the team at ElevenLabs: `````md You are the world's best documentation writer, renowned for your clarity, precision, and engaging style. Every piece of documentation you produce is: -1. Clear and precise - no ambiguity, jargon, marketing language or unnecssarily complex language. +1. Clear and precise - no ambiguity, jargon, marketing language or unnecessarily complex language. 2. Concise—short, direct sentences and paragraphs. 3. Scientifically structured—organized like a research paper or technical white paper, with a logical flow and strict attention to detail. 4. Visually engaging—using line breaks, headings, and components to enhance readability. diff --git a/fern/pages/docs/developer-tools/llms-txt.mdx b/fern/pages/docs/developer-tools/llms-txt.mdx index e357ee72d19..0d344464526 100644 --- a/fern/pages/docs/developer-tools/llms-txt.mdx +++ b/fern/pages/docs/developer-tools/llms-txt.mdx @@ -6,9 +6,9 @@ layout: guide --- ## What is llms.txt? -[LLMs.txt](https://llmstxt.org/) is an emerging standard so that websites can easily expose information to AI developer tools. +[LLMs.txt](https://llmstxt.org/) is an emerging standard so that websites can easily expose information to AI developer tools. LLMs thrive on concise, structured information, and `llms.txt` help them locate and interpret key information in your developer documentation with ease. -No configuration required--your `llms.txt` files are automatically generated and maintained, just like a `sitemap.xml` or `robots.txt`. +No configuration required--your `llms.txt` files are automatically generated and maintained, just like a `sitemap.xml` or `robots.txt`. ### llms.txt - **Small and fast**: Quick to load and easy to parse. @@ -20,7 +20,7 @@ See an example: [docs.cohere.com/llms.txt](https://docs.cohere.com/llms.txt) ### llms-full.txt - **Comprehensive**: Includes the full content of your documentation. - **API-Ready**: Automatically incorporates your full API reference and SDK snippets (if generated by Fern). -- **Token efficient**: Removes unncessary formatting to be as token-efficient as possible. +- **Token efficient**: Removes unnecessary formatting to be as token-efficient as possible. See an example: [docs.cohere.com/llms-full.txt](https://docs.cohere.com/llms-full.txt) diff --git a/fern/pages/docs/integrations/overview.mdx b/fern/pages/docs/integrations/overview.mdx index b053fcefa44..8a2d270c46c 100644 --- a/fern/pages/docs/integrations/overview.mdx +++ b/fern/pages/docs/integrations/overview.mdx @@ -56,7 +56,7 @@ You can define your analytics configuration in `docs.yml`. You only need to incl ```yaml docs.yml analytics: posthog: - api-key: ${POSTOHG_API_KEY} + api-key: ${POSTHOG_API_KEY} endpoint: https://self.hosted.posthog.com/ segment: write-key: ${SEGMENT_WRITE_KEY} @@ -72,8 +72,8 @@ analytics: If your docs configuration is public, then we do not advise adding secret values directly to `docs.yml`. Instead, you can reference an environment variable by using the syntax `${VARIABLE_NAME}`. - -If you are using GitHub Workflows to trigger docs generation, you must make sure that the environment variables + +If you are using GitHub Workflows to trigger docs generation, you must make sure that the environment variables are available during the workflow run. ```yaml {4} diff --git a/fern/pages/docs/integrations/postman.mdx b/fern/pages/docs/integrations/postman.mdx index 182324fc629..6b5da49553e 100644 --- a/fern/pages/docs/integrations/postman.mdx +++ b/fern/pages/docs/integrations/postman.mdx @@ -1,5 +1,5 @@ --- -title: "Postman Integeration" +title: "Postman Integration" description: "Generate a postman collection full of example requests and responses" subtitle: "Generate a postman collection full of example requests and responses" --- diff --git a/fern/pages/sdks/capabilities/augment-with-custom-code.mdx b/fern/pages/sdks/capabilities/augment-with-custom-code.mdx index 8c0e6f9a9b0..7d38b64c9f0 100644 --- a/fern/pages/sdks/capabilities/augment-with-custom-code.mdx +++ b/fern/pages/sdks/capabilities/augment-with-custom-code.mdx @@ -4,17 +4,17 @@ description: Extend the generated SDK to provide additional functionality --- - This feature is only available on paid plans. Please schedule a [demo](https://buildwithfern.com/contact) - or [email us](mailto:support@buildwithfern.com) to get started. + This feature is only available on paid plans. Please schedule a [demo](https://buildwithfern.com/contact) + or [email us](mailto:support@buildwithfern.com) to get started. -The Fern generated SDKs are designed to be extended with custom code. Your custom code +The Fern generated SDKs are designed to be extended with custom code. Your custom code can be used to add additional functionality to the SDK and will live in harmony with the generated code. ## Custom logic -If you want to provide any logic in your SDK that goes beyond hitting the REST API, you can +If you want to provide any logic in your SDK that goes beyond hitting the REST API, you can do so by leveraging `.fernignore`. Simply add your custom files to the SDK repository and list them out in `.fernignore`. Fern @@ -41,9 +41,9 @@ won't override any files that you add in `.fernignore`. ``` - ### Consume the helper + ### Consume the helper - Now your users can consume the helper function by importing it from the SDK: + Now your users can consume the helper function by importing it from the SDK: ```typescript import { myHelper } from "sdk/helper"; @@ -57,7 +57,7 @@ won't override any files that you add in `.fernignore`. ### Create a new file `src//helper.py` ```python - def my_helper() -> None: + def my_helper() -> None: print "Hello World!" ``` @@ -72,8 +72,8 @@ won't override any files that you add in `.fernignore`. ### Consume the helper - - Now your users can consume the helper function by importing it from the SDK: + + Now your users can consume the helper function by importing it from the SDK: ```python from package.helper import my_helper @@ -160,11 +160,11 @@ won't override any files that you add in `.fernignore`. ## Custom SDK methods -Fern also allows you to add custom methods to the SDK itself (e.g. `client.my_method()` ). +Fern also allows you to add custom methods to the SDK itself (e.g. `client.my_method()` ). -While the specifics are slightly different for each language, the underlying -principle is the same: **extension**. You can inherit the -Fern generated client and add whatever methods you want. +While the specifics are slightly different for each language, the underlying +principle is the same: **extension**. You can inherit the +Fern generated client and add whatever methods you want. @@ -175,14 +175,14 @@ Fern generated client and add whatever methods you want. ### Create a new file `src/wrapper/MyClient.ts` - You can import the Fern generated client from `../client` and alias it to `FernClient`. - Next, extend `FernClient` and add whatever methods you want. + You can import the Fern generated client from `../client` and alias it to `FernClient`. + Next, extend `FernClient` and add whatever methods you want. ```typescript import { MyClient as FernClient } from "../client"; // alias the Fern generated client export class MyClient extends FernClient { // extend the Fern generated client - + public myHelper(): void { console.log("Hello world!"); } @@ -192,8 +192,8 @@ Fern generated client and add whatever methods you want. ### Export the extended client - Instead of exporting the generated client, export the extended client. To do this, - you will need to update the `index.ts` file. + Instead of exporting the generated client, export the extended client. To do this, + you will need to update the `index.ts` file. ```typescript @@ -213,8 +213,8 @@ Fern generated client and add whatever methods you want. ### Consume the method - - Now your users can consume the helper function by importing it from the SDK: + + Now your users can consume the helper function by importing it from the SDK: ```typescript client.myHelper() @@ -223,14 +223,14 @@ Fern generated client and add whatever methods you want. - See an example from ElevenLabs using this process in their [Python SDK](https://github.com/elevenlabs/elevenlabs-python/blob/main/src/elevenlabs/client.py). + See an example from ElevenLabs using this process in their [Python SDK](https://github.com/elevenlabs/elevenlabs-python/blob/main/src/elevenlabs/client.py). ### Update `generators.yml` configuration - To add a custom method to the Python SDK, you will need to configure the - generator to output the client in a file called `base_client.py`. Then, you can + To add a custom method to the Python SDK, you will need to configure the + generator to output the client in a file called `base_client.py`. Then, you can extend the base client and add whatever methods you want. See the ```yaml {4-8} @@ -241,32 +241,32 @@ Fern generated client and add whatever methods you want. class_name: BaseClient # The name of the generated client you will extend filename: base_client.py # The name of the file the generated client will live in exported_class_name: Client # The name of the class you will be creating that extends the generated client - exported_filename: client.py + exported_filename: client.py ``` ### Generate the SDK - Trigger SDK generation by running `fern generate`. + Trigger SDK generation by running `fern generate`. ### Create a new file `src//client.py` - You can import the Fern generated client from `../client` and alias it to `FernClient`. - Next, extend `FernClient` and add whatever methods you want. + You can import the Fern generated client from `../client` and alias it to `FernClient`. + Next, extend `FernClient` and add whatever methods you want. ```python from .base_client import \ BaseClient, AsyncBaseClient - - class YourClient(BaseClient): + + class YourClient(BaseClient): def my_helper(): -> None print("Hello World") - - class AsyncYourClient(AsyncBaseClient): + + class AsyncYourClient(AsyncBaseClient): def my_helper(): -> None print("Hello World") - + ``` ### Update `.fernignore` @@ -280,8 +280,8 @@ Fern generated client and add whatever methods you want. ### Consume the method - - Now your users can consume the helper function by importing it from the SDK: + + Now your users can consume the helper function by importing it from the SDK: ```typescript client.my_helper() @@ -297,7 +297,7 @@ Fern generated client and add whatever methods you want. - name: fernapi/fern-java-sdk version: "..." config: - client-class-name: BaseClient + client-class-name: BaseClient ``` ### Create a new file `src/main/java/com/example/MyClient.java` @@ -346,7 +346,7 @@ Fern generated client and add whatever methods you want. } func NewMyClient(opts ...option.RequestOption) *MyClient { - retun &MyClient{ + return &MyClient{ Client: NewClient(opts...), } } @@ -391,7 +391,7 @@ Fern generated client and add whatever methods you want. ## Custom dependencies -To add custom dependencies to your generated SDKs, you can update your `generators.yml`. +To add custom dependencies to your generated SDKs, you can update your `generators.yml`. @@ -399,9 +399,9 @@ To add custom dependencies to your generated SDKs, you can update your `generato - name: fernapi/fern-typescript-node-sdk version: "..." config: - extraDependencies: + extraDependencies: lodash-es: '1.0.0' - extraDevDependencies: + extraDevDependencies: "@types/lodash-es": '1.0.0' ``` @@ -410,9 +410,9 @@ To add custom dependencies to your generated SDKs, you can update your `generato - name: fernapi/fern-python-sdk version: "..." config: - extra_dependencies: + extra_dependencies: numpy: '1.2.0' - extra_dev_dependencies: + extra_dev_dependencies: requests_mock: '1.12.1' ``` diff --git a/fern/pages/sdks/capabilities/idiomatic-method-names.mdx b/fern/pages/sdks/capabilities/idiomatic-method-names.mdx index 03867c1ef08..403e7eedf5c 100644 --- a/fern/pages/sdks/capabilities/idiomatic-method-names.mdx +++ b/fern/pages/sdks/capabilities/idiomatic-method-names.mdx @@ -3,8 +3,8 @@ title: Idiomatic Method Names description: Fine-tune SDK resources and method names --- -Fern allows you to fine-tune your SDK method and group names so that -your SDK reads exactly how you want it to. For example, instead of +Fern allows you to fine-tune your SDK method and group names so that +your SDK reads exactly how you want it to. For example, instead of `client.postUsers` you can configure the SDK to read `client.users.create()`. @@ -16,7 +16,7 @@ your SDK reads exactly how you want it to. For example, instead of ```python response = client.users.create() - # or async + # or async response = await async_client.users.create() ``` @@ -32,8 +32,8 @@ your SDK reads exactly how you want it to. For example, instead of -Groups can also be arbitrarily nested. For example, if you want to nest the `users` -endpoints under an `admin` group, the SDK would then read: +Groups can also be arbitrarily nested. For example, if you want to nest the `users` +endpoints under an `admin` group, the SDK would then read: @@ -44,8 +44,8 @@ endpoints under an `admin` group, the SDK would then read: ```python response = client.admin.users.create() - # or async - response = await async_client.amdin.users.create() + # or async + response = await async_client.admin.users.create() ``` @@ -61,13 +61,13 @@ endpoints under an `admin` group, the SDK would then read: -See how merge.dev uses nested groups [here](https://github.com/merge-api/merge-node-client?tab=readme-ov-file#create-link-token). +See how merge.dev uses nested groups [here](https://github.com/merge-api/merge-node-client?tab=readme-ov-file#create-link-token). If you're using an OpenAPI Specification, you'll need to leverage the [`x-fern-sdk-method-name`](/learn/api-definition/openapi/extensions#sdk-method-names) -extension. If you're using the fern definition, then the method name comes from the endpoint directly. +extension. If you're using the fern definition, then the method name comes from the endpoint directly. ## Casing -Additionally, Fern handles choosing the appropriate casing for each SDK -language: `snake_case` in python, `camelCase` in TypeScript and `PascalCase` in Go, etc. +Additionally, Fern handles choosing the appropriate casing for each SDK +language: `snake_case` in python, `camelCase` in TypeScript and `PascalCase` in Go, etc. diff --git a/fern/pages/sdks/capabilities/integration-tests.mdx b/fern/pages/sdks/capabilities/integration-tests.mdx index 4e264986071..7f20121d620 100644 --- a/fern/pages/sdks/capabilities/integration-tests.mdx +++ b/fern/pages/sdks/capabilities/integration-tests.mdx @@ -4,36 +4,36 @@ description: Test your SDK against a mock server --- - This feature is only available on paid plans. Please schedule a [demo](https://buildwithfern.com/contact) - or [email us](mailto:support@buildwithfern.com) to get started. + This feature is only available on paid plans. Please schedule a [demo](https://buildwithfern.com/contact) + or [email us](mailto:support@buildwithfern.com) to get started. To make sure that your SDK works in production, Fern will auto-generate integration tests that run before release. The release will only take place if no tests fail. -### What gets generated? +### What gets generated? Fern will use your API Definition to generate a mock server that will be used - in the integration tests. The mock server will assert that the SDK is - making the correct requests. + in the integration tests. The mock server will assert that the SDK is + making the correct requests. - By default, the mock server will use the examples specified in your - API Definition. If no examples are specified, Fern will generate examples to + By default, the mock server will use the examples specified in your + API Definition. If no examples are specified, Fern will generate examples to the best of its ability. - Specifying examples in your API Definition is recommended to ensure so that you can + Specifying examples in your API Definition is recommended to ensure so that you can control what data is used in the tests. - Fern will generate integration tests as part of your SDK. These integration tests + Fern will generate integration tests as part of your SDK. These integration tests will run against the mock server and assert validity of requests and responses. - The generated tests will use appropriate testing framework for the language: + The generated tests will use appropriate testing framework for the language: - Jest for JavaScript/TypeScript - Pytest for Python - JUnit for Java @@ -41,9 +41,9 @@ if no tests fail. - NUnit for C# - The standard library for Go - - Fern will generate a GitHub workflow that will run the integration tests - on every pull request, commit and release. + + Fern will generate a GitHub workflow that will run the integration tests + on every pull request, commit and release. ![GitHub Workflow](https://fern-image-hosting.s3.amazonaws.com/fern/test-ci.png) @@ -53,8 +53,8 @@ if no tests fail. ### Adding additional tests -If you would like to add additional tests, you can do so by committing them -directly to the generated SDK repositories. Note that you will need to +If you would like to add additional tests, you can do so by committing them +directly to the generated SDK repositories. Note that you will need to add the test files to your `.fernignore` file to prevent them from being overwritten by Fern. @@ -73,7 +73,7 @@ overwritten by Fern. }); }); ``` - + ### Run your test ```bash yarn install @@ -109,7 +109,7 @@ overwritten by Fern. ### `.fernignore` your test file ```yaml .fernignore {3} # Specify any files that shouldn't be modified by Fern - + tests/test_custom.py ``` @@ -144,13 +144,13 @@ overwritten by Fern. ``` ### `.fernignore` your test file - + ```yaml .fernignore {3} # Specify any files that shouldn't be modified by Fern - + src/test/java/com/example/MyClientTest.java ``` - + diff --git a/fern/pages/sdks/capabilities/retries-with-backoff.mdx b/fern/pages/sdks/capabilities/retries-with-backoff.mdx index ac95d9d90af..bbd942d21ab 100644 --- a/fern/pages/sdks/capabilities/retries-with-backoff.mdx +++ b/fern/pages/sdks/capabilities/retries-with-backoff.mdx @@ -4,28 +4,28 @@ description: Automatically retry failures with exponential backoff --- - This feature is only available on paid plans. Please schedule a [demo](https://buildwithfern.com/contact) - or [email us](mailto:support@buildwithfern.com) to get started. + This feature is only available on paid plans. Please schedule a [demo](https://buildwithfern.com/contact) + or [email us](mailto:support@buildwithfern.com) to get started. -Fern SDKs will automatically retry failed requests with exponential backoff. A request will be retried as -long as the request is deemed retriable and the number of retry attempts has +Fern SDKs will automatically retry failed requests with exponential backoff. A request will be retried as +long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit. -### Retriable status codes +### Retryable status codes -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors) -Note that you can configure the list of retriable status codes as well. For example, -if you want to remove the `429` status code from the list of retriable status codes, you can do so. +Note that you can configure the list of retryable status codes as well. For example, +if you want to remove the `429` status code from the list of retryable status codes, you can do so. ### Overriding the retry limit -By default, the SDK will retry a failed request up to 2 times. SDK users can override the global -default retry limit when instantiating the client. +By default, the SDK will retry a failed request up to 2 times. SDK users can override the global +default retry limit when instantiating the client. @@ -73,7 +73,7 @@ default retry limit when instantiating the client. -It's also possible to override the retry limit on a per-request basis. +It's also possible to override the retry limit on a per-request basis. diff --git a/fern/pages/sdks/introduction/configuration.mdx b/fern/pages/sdks/introduction/configuration.mdx index 23c58ecf96f..a5a7aea2aaf 100644 --- a/fern/pages/sdks/introduction/configuration.mdx +++ b/fern/pages/sdks/introduction/configuration.mdx @@ -85,7 +85,7 @@ metadata: ``` - The decription you'd like the package manager, such as NPM or PyPI, to include. + The description you'd like the package manager, such as NPM or PyPI, to include. diff --git a/generators/csharp/codegen/src/project/CsharpProject.ts b/generators/csharp/codegen/src/project/CsharpProject.ts index 22e4a9603c1..88ee772e579 100644 --- a/generators/csharp/codegen/src/project/CsharpProject.ts +++ b/generators/csharp/codegen/src/project/CsharpProject.ts @@ -317,7 +317,7 @@ export class CsharpProject extends AbstractProject { writer.writeNode( diff --git a/generators/csharp/sdk/features.yml b/generators/csharp/sdk/features.yml index a107c1369cc..7cf32ddabd2 100644 --- a/generators/csharp/sdk/features.yml +++ b/generators/csharp/sdk/features.yml @@ -12,10 +12,10 @@ features: advanced: true description: | The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long - as the request is deemed retriable and the number of retry attempts has not grown larger than the configured + as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). - A request is deemed retriable when any of the following HTTP status codes is returned: + A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/generators/csharp/sdk/src/endpoint/EndpointGenerator.ts b/generators/csharp/sdk/src/endpoint/EndpointGenerator.ts index af0cde0d9a7..74ccbbcd9d9 100644 --- a/generators/csharp/sdk/src/endpoint/EndpointGenerator.ts +++ b/generators/csharp/sdk/src/endpoint/EndpointGenerator.ts @@ -58,7 +58,7 @@ export class EndpointGenerator extends AbstractEndpointGenerator { endpoint: HttpEndpoint ): grpcClientInfo is GrpcClientInfo { // If the service is a grpc service, grpcClientInfo will not be null or undefined, - // so any endpoint will be generated as a grpc endpoint, unless the transport is overriden by setting type to http + // so any endpoint will be generated as a grpc endpoint, unless the transport is overridden by setting type to http return grpcClientInfo != null && endpoint.transport?.type !== "http"; } } diff --git a/generators/csharp/sdk/src/options/BaseOptionsGenerator.ts b/generators/csharp/sdk/src/options/BaseOptionsGenerator.ts index 130a00bd082..be9e8213cf5 100644 --- a/generators/csharp/sdk/src/options/BaseOptionsGenerator.ts +++ b/generators/csharp/sdk/src/options/BaseOptionsGenerator.ts @@ -55,7 +55,7 @@ export class BaseOptionsGenerator { }: HttpHeadersFieldOptionArgs): csharp.Field { const headersReference = csharp.Type.reference(this.context.getHeadersClassReference()); return csharp.field({ - // Classes implenting internal interface field cannot have an access modifier + // Classes implementing internal interface field cannot have an access modifier access: !interfaceReference ? csharp.Access.Internal : undefined, name: "Headers", get: true, @@ -130,7 +130,7 @@ export class BaseOptionsGenerator { ]; } - public getIdepotentRequestOptionFields(): csharp.Field[] { + public getIdempotentRequestOptionFields(): csharp.Field[] { return this.context.getIdempotencyHeaders().map((header) => csharp.field({ access: csharp.Access.Public, diff --git a/generators/csharp/sdk/src/options/IdempotentRequestOptionsGenerator.ts b/generators/csharp/sdk/src/options/IdempotentRequestOptionsGenerator.ts index 617cab614de..5079c4b2a38 100644 --- a/generators/csharp/sdk/src/options/IdempotentRequestOptionsGenerator.ts +++ b/generators/csharp/sdk/src/options/IdempotentRequestOptionsGenerator.ts @@ -28,7 +28,7 @@ export class IdempotentRequestOptionsGenerator extends FileGenerator< interfaceReferences: [this.context.getIdempotentRequestOptionsInterfaceClassReference()] }); class_.addFields(this.baseOptionsGenerator.getRequestOptionFields()); - class_.addFields(this.baseOptionsGenerator.getIdepotentRequestOptionFields()); + class_.addFields(this.baseOptionsGenerator.getIdempotentRequestOptionFields()); class_.addMethod( csharp.method({ name: "GetIdempotencyHeaders", diff --git a/generators/csharp/sdk/src/options/IdempotentRequestOptionsInterfaceGenerator.ts b/generators/csharp/sdk/src/options/IdempotentRequestOptionsInterfaceGenerator.ts index 1a478a0060d..dd2d1ad2bc3 100644 --- a/generators/csharp/sdk/src/options/IdempotentRequestOptionsInterfaceGenerator.ts +++ b/generators/csharp/sdk/src/options/IdempotentRequestOptionsInterfaceGenerator.ts @@ -26,7 +26,7 @@ export class IdempotentRequestOptionsInterfaceGenerator extends FileGenerator< access: csharp.Access.Internal, interfaceReferences: [this.context.getRequestOptionsInterfaceReference()] }); - interface_.addFields(this.baseOptionsGenerator.getIdepotentRequestOptionFields()); + interface_.addFields(this.baseOptionsGenerator.getIdempotentRequestOptionFields()); interface_.addMethod( csharp.method({ name: "GetIdempotencyHeaders", diff --git a/generators/csharp/sdk/src/test-generation/mock-server/MockServerTestGenerator.ts b/generators/csharp/sdk/src/test-generation/mock-server/MockServerTestGenerator.ts index b5f7e59afae..c9cbdc0641a 100644 --- a/generators/csharp/sdk/src/test-generation/mock-server/MockServerTestGenerator.ts +++ b/generators/csharp/sdk/src/test-generation/mock-server/MockServerTestGenerator.ts @@ -49,7 +49,7 @@ export class MockServerTestGenerator extends FileGenerator- - Add support for calling HTTP endpoints and gRPC endoints within the same service. + Add support for calling HTTP endpoints and gRPC endpoints within the same service. irVersion: 53 - version: 1.8.5 createdAt: "2024-10-30" @@ -497,7 +497,7 @@ createdAt: "2024-07-25" changelogEntry: - type: fix - summary: Fix MultURL environment classes compilation issue. + summary: Fix Multi URL environment classes compilation issue. irVersion: 51 - version: 0.2.0 createdAt: "2024-07-25" diff --git a/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index 237b5907b87..10144e1da71 100644 --- a/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -391,7 +391,7 @@ func do() { client := client.NewClient() client.Service.JustFile( context.TODO(), - &acme.JustFileRequet{ + &acme.JustFileRequest{ File: strings.NewReader( "Hello, world!", ), @@ -415,7 +415,7 @@ func do() { client := client.NewClient() client.Service.JustFileWithQueryParams( context.TODO(), - &acme.JustFileWithQueryParamsRequet{ + &acme.JustFileWithQueryParamsRequest{ Integer: 42, MaybeString: acme.String( "exists", @@ -1138,7 +1138,7 @@ func do() { client := client.NewFernClient() client.Service.JustFile( context.TODO(), - &acme.JustFileRequet{ + &acme.JustFileRequest{ File: strings.NewReader( "Hello, world!", ), @@ -1162,7 +1162,7 @@ func do() { client := client.NewFernClient() client.Service.JustFileWithQueryParams( context.TODO(), - &acme.JustFileWithQueryParamsRequet{ + &acme.JustFileWithQueryParamsRequest{ Integer: 42, MaybeString: acme.String( "exists", diff --git a/generators/go-v2/dynamic-snippets/src/context/DynamicTypeInstantiationMapper.ts b/generators/go-v2/dynamic-snippets/src/context/DynamicTypeInstantiationMapper.ts index be1f7d662b2..00227341b9e 100644 --- a/generators/go-v2/dynamic-snippets/src/context/DynamicTypeInstantiationMapper.ts +++ b/generators/go-v2/dynamic-snippets/src/context/DynamicTypeInstantiationMapper.ts @@ -136,7 +136,7 @@ export class DynamicTypeInstantiationMapper { case "object": return this.convertObject({ object_: named, value }); case "undiscriminatedUnion": - return this.convertUndicriminatedUnion({ undicriminatedUnion: named, value }); + return this.convertUndiscriminatedUnion({ undiscriminatedUnion: named, value }); default: assertNever(named); } @@ -314,15 +314,15 @@ export class DynamicTypeInstantiationMapper { return `${this.context.getTypeName(enum_.declaration.name)}${this.context.getTypeName(enumValue.name)}`; } - private convertUndicriminatedUnion({ - undicriminatedUnion, + private convertUndiscriminatedUnion({ + undiscriminatedUnion, value }: { - undicriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; + undiscriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; value: unknown; }): go.TypeInstantiation { const result = this.findMatchingUndiscriminatedUnionType({ - undicriminatedUnion, + undiscriminatedUnion, value }); if (result == null) { @@ -334,7 +334,7 @@ export class DynamicTypeInstantiationMapper { } return go.TypeInstantiation.structPointer({ typeReference: this.context.getGoTypeReferenceFromDeclaration({ - declaration: undicriminatedUnion.declaration + declaration: undiscriminatedUnion.declaration }), fields: [ { @@ -346,13 +346,13 @@ export class DynamicTypeInstantiationMapper { } private findMatchingUndiscriminatedUnionType({ - undicriminatedUnion, + undiscriminatedUnion, value }: { - undicriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; + undiscriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; value: unknown; }): { valueTypeReference: FernIr.dynamic.TypeReference; typeInstantiation: go.TypeInstantiation } | undefined { - for (const typeReference of undicriminatedUnion.types) { + for (const typeReference of undiscriminatedUnion.types) { try { const typeInstantiation = this.convert({ typeReference, value }); return { valueTypeReference: typeReference, typeInstantiation }; @@ -362,7 +362,7 @@ export class DynamicTypeInstantiationMapper { } this.context.errors.add({ severity: Severity.Critical, - message: `None of the types in the undicriminated union matched the given "${typeof value}" value` + message: `None of the types in the undiscriminated union matched the given "${typeof value}" value` }); return undefined; } diff --git a/generators/go/README.md b/generators/go/README.md index cf640eaa556..fc64abad47f 100644 --- a/generators/go/README.md +++ b/generators/go/README.md @@ -3,7 +3,7 @@ header - +
# Go Generator @@ -63,7 +63,7 @@ to do so. ### Package name -You can customzie the name of the package generated with the following `generators.yml` configuration: +You can customize the name of the package generated with the following `generators.yml` configuration: ```yaml default-group: local diff --git a/generators/go/cmd/fern-go-model/main_test.go b/generators/go/cmd/fern-go-model/main_test.go index 5fa22ec3a70..80d6af35b78 100644 --- a/generators/go/cmd/fern-go-model/main_test.go +++ b/generators/go/cmd/fern-go-model/main_test.go @@ -264,7 +264,7 @@ func TestTime(t *testing.T) { assert.Equal(t, 16, decode.Date.Day()) }) - t.Run("undiscrimnated union (required)", func(t *testing.T) { + t.Run("undiscriminated union (required)", func(t *testing.T) { value := undiscriminated.NewUnionWithTimeFromDate(date) bytes, err := json.Marshal(value) @@ -279,7 +279,7 @@ func TestTime(t *testing.T) { assert.Equal(t, 16, decode.Date.Day()) }) - t.Run("undiscrimnated union (optional)", func(t *testing.T) { + t.Run("undiscriminated union (optional)", func(t *testing.T) { value := undiscriminated.NewUnionWithOptionalTimeFromDateOptional(&date) bytes, err := json.Marshal(value) diff --git a/generators/go/fiber/versions.yml b/generators/go/fiber/versions.yml index 2ea22fbfb78..3600367dc21 100644 --- a/generators/go/fiber/versions.yml +++ b/generators/go/fiber/versions.yml @@ -29,7 +29,7 @@ summary: Fix literal value deserialization. changed: - >- - Updates object and undisriminated union deserialization to return an + Updates object and undiscriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. irVersion: 40 - version: 0.23.0 @@ -292,7 +292,7 @@ - type: fix summary: Support boolean literals. - type: fix - summary: Union subt-ypes with no properties are now go 1.13 compatible. + summary: Union subtypes with no properties are now go 1.13 compatible. irVersion: 28 - version: 0.9.0 createdAt: '2023-10-31' diff --git a/generators/go/internal/fern/ir.json b/generators/go/internal/fern/ir.json index 5407dd5a95e..3b6f1c98079 100644 --- a/generators/go/internal/fern/ir.json +++ b/generators/go/internal/fern/ir.json @@ -7743,7 +7743,7 @@ "userProvidedExamples": [], "autogeneratedExamples": [], "availability": null, - "docs": "Defines the original string, and its escaped-equivalent (depending on the target programming language).\nThis is paricularly relevant to example string literals.\n\nFor example, in Python we escape strings that contain single or double quotes by using triple quotes,\nin Go we use backticks, etc." + "docs": "Defines the original string, and its escaped-equivalent (depending on the target programming language).\nThis is particularly relevant to example string literals.\n\nFor example, in Python we escape strings that contain single or double quotes by using triple quotes,\nin Go we use backticks, etc." }, "type_commons:WithJsonExample": { "name": { @@ -14282,7 +14282,7 @@ "userProvidedExamples": [], "autogeneratedExamples": [], "availability": null, - "docs": "Reperesents the request parameters required to call a specific endpoiont." + "docs": "Represents the request parameters required to call a specific endpoint." }, "type_dynamic/endpoints:Response": { "name": { @@ -14457,7 +14457,7 @@ "userProvidedExamples": [], "autogeneratedExamples": [], "availability": null, - "docs": "Reperesents the response returned by a specific endpoint.\n\nFor now, we only support json responses, but this is set up to support a\nvariety of other endpoint response types (e.g. file download, pagination,\nstreaming, etc)." + "docs": "Represents the response returned by a specific endpoint.\n\nFor now, we only support json responses, but this is set up to support a\nvariety of other endpoint response types (e.g. file download, pagination,\nstreaming, etc)." }, "type_dynamic/endpoints:BodyRequest": { "name": { @@ -17904,7 +17904,7 @@ } }, "availability": null, - "docs": "The version of the dynamic IR. This is independent from the verison\nof the primary IR." + "docs": "The version of the dynamic IR. This is independent from the version\nof the primary IR." }, { "name": { @@ -77715,7 +77715,7 @@ } }, "availability": null, - "docs": "If specified, this enpdoint should be used in every snippet (if possible).\nNote that some endpoints aren't suitable for every feature (e.g. a non-list\nendpoint for pagination), so the default is a no-op in those cases." + "docs": "If specified, this endpoint should be used in every snippet (if possible).\nNote that some endpoints aren't suitable for every feature (e.g. a non-list\nendpoint for pagination), so the default is a no-op in those cases." }, { "name": { @@ -96001,7 +96001,7 @@ "userProvidedExamples": [], "autogeneratedExamples": [], "availability": null, - "docs": "A reference to a named type. For backwards compatbility, this type must be fully compatible\nwith the DeclaredTypeName." + "docs": "A reference to a named type. For backwards compatibility, this type must be fully compatible\nwith the DeclaredTypeName." }, "type_types:NamedTypeDefault": { "name": { diff --git a/generators/go/internal/fern/ir/dynamic/types.go b/generators/go/internal/fern/ir/dynamic/types.go index 26856bb72d6..b07f298e510 100644 --- a/generators/go/internal/fern/ir/dynamic/types.go +++ b/generators/go/internal/fern/ir/dynamic/types.go @@ -1222,7 +1222,7 @@ func (r *ReferencedRequestBodyType) Accept(visitor ReferencedRequestBodyTypeVisi } } -// Reperesents the request parameters required to call a specific endpoiont. +// Represents the request parameters required to call a specific endpoint. type Request struct { Type string Body *BodyRequest @@ -1313,7 +1313,7 @@ func (r *Request) Accept(visitor RequestVisitor) error { } } -// Reperesents the response returned by a specific endpoint. +// Represents the response returned by a specific endpoint. // // For now, we only support json responses, but this is set up to support a // variety of other endpoint response types (e.g. file download, pagination, @@ -1397,7 +1397,7 @@ func (r *Response) Accept(visitor ResponseVisitor) error { // This IR minimizes the space required to generate snippets in a variety // of environments (e.g. web, offline, etc). type DynamicIntermediateRepresentation struct { - // The version of the dynamic IR. This is independent from the verison + // The version of the dynamic IR. This is independent from the version // of the primary IR. Types map[sdk.TypeId]*NamedType `json:"types,omitempty" url:"types,omitempty"` Endpoints map[sdk.EndpointId]*Endpoint `json:"endpoints,omitempty" url:"endpoints,omitempty"` diff --git a/generators/go/internal/fern/ir/types.go b/generators/go/internal/fern/ir/types.go index fb94a51c43e..a3e596f0b2c 100644 --- a/generators/go/internal/fern/ir/types.go +++ b/generators/go/internal/fern/ir/types.go @@ -1103,7 +1103,7 @@ func (e *EndpointReference) String() string { type ErrorId = string // Defines the original string, and its escaped-equivalent (depending on the target programming language). -// This is paricularly relevant to example string literals. +// This is particularly relevant to example string literals. // // For example, in Python we escape strings that contain single or double quotes by using triple quotes, // in Go we use backticks, etc. @@ -7943,7 +7943,7 @@ func (p *ProtoSource) String() string { // The configuration used to generate a README.md file. If present, the generator // should call the generator-cli to produce a README.md. type ReadmeConfig struct { - // If specified, this enpdoint should be used in every snippet (if possible). + // If specified, this endpoint should be used in every snippet (if possible). // Note that some endpoints aren't suitable for every feature (e.g. a non-list // endpoint for pagination), so the default is a no-op in those cases. DefaultEndpoint *EndpointId `json:"defaultEndpoint,omitempty" url:"defaultEndpoint,omitempty"` @@ -13200,7 +13200,7 @@ func (m *MapType) String() string { return fmt.Sprintf("%#v", m) } -// A reference to a named type. For backwards compatbility, this type must be fully compatible +// A reference to a named type. For backwards compatibility, this type must be fully compatible // with the DeclaredTypeName. type NamedType struct { TypeId TypeId `json:"typeId" url:"typeId"` diff --git a/generators/go/internal/generator/cycle.go b/generators/go/internal/generator/cycle.go index b6d05f5f07e..ec5efda07ed 100644 --- a/generators/go/internal/generator/cycle.go +++ b/generators/go/internal/generator/cycle.go @@ -156,7 +156,7 @@ func invalidComponentsFromGraph( if len(component) == 1 { continue } - // Sort for determinisitc results. + // Sort for deterministic results. sort.Slice(component, func(i, j int) bool { return component[i].Label() < component[j].Label() }) invalidComponents = append(invalidComponents, component) } diff --git a/generators/go/internal/generator/generator.go b/generators/go/internal/generator/generator.go index 8ce4bfad6c6..c66525ea8dd 100644 --- a/generators/go/internal/generator/generator.go +++ b/generators/go/internal/generator/generator.go @@ -227,7 +227,7 @@ func (g *Generator) generate(ir *fernir.IntermediateRepresentation, mode Mode) ( referencedImportPath := fernFilepathToImportPath(g.config.ImportPath, referencedType.FernFilepath) if typeImportPath != referencedImportPath { return nil, fmt.Errorf( - "%s referneces %s from another package, but a generator import path was not specified", + "%s references %s from another package, but a generator import path was not specified", typeDeclaration.Name.TypeId, referencedType.TypeId, ) @@ -1039,7 +1039,7 @@ func (g *Generator) generateReadme( ) } -// readIR reads the *InermediateRepresentation from the given filename. +// readIR reads the *IntermediateRepresentation from the given filename. func readIR(irFilename string) (*fernir.IntermediateRepresentation, error) { bytes, err := os.ReadFile(irFilename) if err != nil { diff --git a/generators/go/internal/generator/sdk.go b/generators/go/internal/generator/sdk.go index a60256e4a28..144171292da 100644 --- a/generators/go/internal/generator/sdk.go +++ b/generators/go/internal/generator/sdk.go @@ -650,7 +650,7 @@ func (f *fileWriter) WriteIdempotentRequestOptions( importPath := path.Join(f.baseImportPath, "option") // Generate the option.RequestOption type alias. - f.P("// IdempotentRequestOption adapts the behavior of an indivdual request.") + f.P("// IdempotentRequestOption adapts the behavior of an individual request.") f.P("type IdempotentRequestOption = core.IdempotentRequestOption") for _, header := range idempotencyHeaders { @@ -690,7 +690,7 @@ func (f *fileWriter) WriteRequestOptions( ) // Generate the option.RequestOption type alias. - f.P("// RequestOption adapts the behavior of an indivdual request.") + f.P("// RequestOption adapts the behavior of an individual request.") f.P("type RequestOption = core.RequestOption") // Generate the options for setting the base URL and HTTP client. @@ -2246,9 +2246,9 @@ func (f *fileWriter) endpointFromIR( // Add path parameters and request body, if any. pathParameterToScopedName := make(map[string]string, len(irEndpoint.AllPathParameters)) - pathParamters := make(map[string]*ir.PathParameter, len(irEndpoint.AllPathParameters)) + pathParameters := make(map[string]*ir.PathParameter, len(irEndpoint.AllPathParameters)) for _, pathParameter := range irEndpoint.AllPathParameters { - pathParamters[pathParameter.Name.OriginalName] = pathParameter + pathParameters[pathParameter.Name.OriginalName] = pathParameter } var ( @@ -2265,7 +2265,7 @@ func (f *fileWriter) endpointFromIR( if part.PathParameter == "" { continue } - pathParameter, ok := pathParamters[part.PathParameter] + pathParameter, ok := pathParameters[part.PathParameter] if !ok { return nil, fmt.Errorf("internal error: path parameter %s not found in endpoint %s", part.PathParameter, irEndpoint.Name.OriginalName) } @@ -2622,7 +2622,7 @@ func (f *fileWriter) WriteError(errorDeclaration *ir.ErrorDeclaration) error { f.P("*core.APIError") if errorDeclaration.Type == nil { // This error doesn't have a body, so we only need to include the status code. - // We still needto implement the json.Unmarshaler and json.Marshaler though. + // We still need to implement the json.Unmarshaler and json.Marshaler though. f.P("}") f.P() f.P("func (", receiver, "*", typeName, ") UnmarshalJSON(data []byte) error {") diff --git a/generators/go/internal/generator/sdk/internal/retrier.go b/generators/go/internal/generator/sdk/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/generator/sdk/internal/retrier.go +++ b/generators/go/internal/generator/sdk/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/goexec/doc.go b/generators/go/internal/goexec/doc.go index 23fd77842e0..f374a6d7738 100644 --- a/generators/go/internal/goexec/doc.go +++ b/generators/go/internal/goexec/doc.go @@ -1,2 +1,2 @@ -// Pacakge goexec provides utilities for executing the Go command. +// Package goexec provides utilities for executing the Go command. package goexec diff --git a/generators/go/internal/gospec/imports.go b/generators/go/internal/gospec/imports.go index f8bc0f8133f..f78b7e6dc71 100644 --- a/generators/go/internal/gospec/imports.go +++ b/generators/go/internal/gospec/imports.go @@ -61,7 +61,7 @@ func (i *Imports) String() string { } } - // Sort the import statments for deterministic results. + // Sort the import statements for deterministic results. type statement struct { Alias string Path string diff --git a/generators/go/internal/testdata/model/union/fern/definition/imdb.yml b/generators/go/internal/testdata/model/union/fern/definition/imdb.yml index 8b0b3dd3e93..3e91fb3904b 100644 --- a/generators/go/internal/testdata/model/union/fern/definition/imdb.yml +++ b/generators/go/internal/testdata/model/union/fern/definition/imdb.yml @@ -56,7 +56,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional Foo: properties: diff --git a/generators/go/internal/testdata/model/union/fixtures/imdb.go b/generators/go/internal/testdata/model/union/fixtures/imdb.go index 72935a39823..1fc21239576 100644 --- a/generators/go/internal/testdata/model/union/fixtures/imdb.go +++ b/generators/go/internal/testdata/model/union/fixtures/imdb.go @@ -582,15 +582,15 @@ func (u *UnionWithLiteral) validate() error { type UnionWithOptionalTime struct { Type string Date *time.Time - Dateimte *time.Time + Datetime *time.Time } func NewUnionWithOptionalTimeFromDate(value *time.Time) *UnionWithOptionalTime { return &UnionWithOptionalTime{Type: "date", Date: value} } -func NewUnionWithOptionalTimeFromDateimte(value *time.Time) *UnionWithOptionalTime { - return &UnionWithOptionalTime{Type: "dateimte", Dateimte: value} +func NewUnionWithOptionalTimeFromDatetime(value *time.Time) *UnionWithOptionalTime { + return &UnionWithOptionalTime{Type: "datetime", Datetime: value} } func (u *UnionWithOptionalTime) GetType() string { @@ -607,11 +607,11 @@ func (u *UnionWithOptionalTime) GetDate() *time.Time { return u.Date } -func (u *UnionWithOptionalTime) GetDateimte() *time.Time { +func (u *UnionWithOptionalTime) GetDatetime() *time.Time { if u == nil { return nil } - return u.Dateimte + return u.Datetime } func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { @@ -634,14 +634,14 @@ func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { return err } u.Date = valueUnmarshaler.Date.TimePtr() - case "dateimte": + case "datetime": var valueUnmarshaler struct { - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` } if err := json.Unmarshal(data, &valueUnmarshaler); err != nil { return err } - u.Dateimte = valueUnmarshaler.Dateimte.TimePtr() + u.Datetime = valueUnmarshaler.Datetime.TimePtr() } return nil } @@ -662,13 +662,13 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { Date: internal.NewOptionalDate(u.Date), } return json.Marshal(marshaler) - case "dateimte": + case "datetime": var marshaler = struct { Type string `json:"type"` - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` }{ - Type: "dateimte", - Dateimte: internal.NewOptionalDateTime(u.Dateimte), + Type: "datetime", + Datetime: internal.NewOptionalDateTime(u.Datetime), } return json.Marshal(marshaler) } @@ -676,7 +676,7 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { type UnionWithOptionalTimeVisitor interface { VisitDate(*time.Time) error - VisitDateimte(*time.Time) error + VisitDatetime(*time.Time) error } func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) error { @@ -685,8 +685,8 @@ func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) err return fmt.Errorf("invalid type %s in %T", u.Type, u) case "date": return visitor.VisitDate(u.Date) - case "dateimte": - return visitor.VisitDateimte(u.Dateimte) + case "datetime": + return visitor.VisitDatetime(u.Datetime) } } @@ -698,8 +698,8 @@ func (u *UnionWithOptionalTime) validate() error { if u.Date != nil { fields = append(fields, "date") } - if u.Dateimte != nil { - fields = append(fields, "dateimte") + if u.Datetime != nil { + fields = append(fields, "datetime") } if len(fields) == 0 { if u.Type != "" { diff --git a/generators/go/internal/testdata/model/union/ir.json b/generators/go/internal/testdata/model/union/ir.json index a425f66b58b..97246e6ff8e 100644 --- a/generators/go/internal/testdata/model/union/ir.json +++ b/generators/go/internal/testdata/model/union/ir.json @@ -2201,25 +2201,25 @@ { "discriminantValue": { "name": { - "originalName": "dateimte", + "originalName": "datetime", "camelCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "snakeCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "screamingSnakeCase": { - "unsafeName": "DATEIMTE", - "safeName": "DATEIMTE" + "unsafeName": "DATETIME", + "safeName": "DATETIME" }, "pascalCase": { - "unsafeName": "Dateimte", - "safeName": "Dateimte" + "unsafeName": "Datetime", + "safeName": "Datetime" } }, - "wireValue": "dateimte" + "wireValue": "datetime" }, "shape": { "_type": "singleProperty", diff --git a/generators/go/internal/testdata/sdk/auth/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/auth/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/auth/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/auth/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/auth/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/auth/fixtures/option/request_option.go index 9f211e54a8f..711c8ed918f 100644 --- a/generators/go/internal/testdata/sdk/auth/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/auth/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/basic/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/basic/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/basic/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/basic/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/basic/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/basic/fixtures/option/request_option.go index 4eec193a4d1..c9d0a739838 100644 --- a/generators/go/internal/testdata/sdk/basic/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/basic/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/option/request_option.go index ece2f64df3f..d6c311adf63 100644 --- a/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/bearer-token-name/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/bearer/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/bearer/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/bearer/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/bearer/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/bearer/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/bearer/fixtures/option/request_option.go index a3acdf49f10..4ce9f224285 100644 --- a/generators/go/internal/testdata/sdk/bearer/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/bearer/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/bytes/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/bytes/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/bytes/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/bytes/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/bytes/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/bytes/fixtures/option/request_option.go index fed180d05d0..444bdffd0f9 100644 --- a/generators/go/internal/testdata/sdk/bytes/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/bytes/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/client-options-core/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/client-options-core/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/client-options-core/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/client-options-core/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/client-options-core/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/client-options-core/fixtures/option/request_option.go index 9e7f569df22..404a046ce17 100644 --- a/generators/go/internal/testdata/sdk/client-options-core/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/client-options-core/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/client-options-filename/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/client-options-filename/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/client-options-filename/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/client-options-filename/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/client-options-filename/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/client-options-filename/fixtures/option/request_option.go index 2ae5ef080dc..eebc277706d 100644 --- a/generators/go/internal/testdata/sdk/client-options-filename/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/client-options-filename/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/cycle/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/cycle/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/cycle/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/cycle/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/cycle/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/cycle/fixtures/option/request_option.go index 1e5c1c21016..263606f5b1d 100644 --- a/generators/go/internal/testdata/sdk/cycle/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/cycle/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/default/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/default/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/default/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/default/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/default/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/default/fixtures/option/request_option.go index 63cc9fc4a84..ea769ced644 100644 --- a/generators/go/internal/testdata/sdk/default/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/default/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( core "sdk/core" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/docs/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/docs/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/docs/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/docs/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/docs/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/docs/fixtures/option/request_option.go index b7d14b266b9..94dc3482624 100644 --- a/generators/go/internal/testdata/sdk/docs/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/docs/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/download/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/download/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/download/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/download/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/download/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/download/fixtures/option/request_option.go index 34b8d925854..04a660b08ca 100644 --- a/generators/go/internal/testdata/sdk/download/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/download/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/empty/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/empty/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/empty/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/empty/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/empty/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/empty/fixtures/option/request_option.go index 3a39d6dc542..0b1c805ad93 100644 --- a/generators/go/internal/testdata/sdk/empty/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/empty/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/environments-core/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/environments-core/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/environments-core/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/environments-core/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/environments-core/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/environments-core/fixtures/option/request_option.go index e09b110e55a..2906964d990 100644 --- a/generators/go/internal/testdata/sdk/environments-core/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/environments-core/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/environments/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/environments/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/environments/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/environments/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/environments/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/environments/fixtures/option/request_option.go index 91649ce218b..35e15cde364 100644 --- a/generators/go/internal/testdata/sdk/environments/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/environments/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/error-discrimination/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/error-discrimination/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/error-discrimination/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/error-discrimination/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/error-discrimination/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/error-discrimination/fixtures/option/request_option.go index 451f4f9d242..1aca6f292e4 100644 --- a/generators/go/internal/testdata/sdk/error-discrimination/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/error-discrimination/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/error/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/error/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/error/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/error/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/error/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/error/fixtures/option/request_option.go index d3651c5488d..bd065d5224f 100644 --- a/generators/go/internal/testdata/sdk/error/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/error/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/headers/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/headers/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/headers/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/headers/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/headers/fixtures/option/idempotent_request_option.go b/generators/go/internal/testdata/sdk/headers/fixtures/option/idempotent_request_option.go index e0ea1795963..b7df026c155 100644 --- a/generators/go/internal/testdata/sdk/headers/fixtures/option/idempotent_request_option.go +++ b/generators/go/internal/testdata/sdk/headers/fixtures/option/idempotent_request_option.go @@ -6,7 +6,7 @@ import ( core "github.com/fern-api/fern-go/internal/testdata/sdk/headers/fixtures/core" ) -// IdempotentRequestOption adapts the behavior of an indivdual request. +// IdempotentRequestOption adapts the behavior of an individual request. type IdempotentRequestOption = core.IdempotentRequestOption // WithIdempotencyKey sets the idempotencyKey request header. diff --git a/generators/go/internal/testdata/sdk/headers/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/headers/fixtures/option/request_option.go index 598d5374bef..999ae2b7dce 100644 --- a/generators/go/internal/testdata/sdk/headers/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/headers/fixtures/option/request_option.go @@ -10,7 +10,7 @@ import ( time "time" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/mergent/fern/definition/__package__.yml b/generators/go/internal/testdata/sdk/mergent/fern/definition/__package__.yml index 70a4609927a..10ab6428986 100644 --- a/generators/go/internal/testdata/sdk/mergent/fern/definition/__package__.yml +++ b/generators/go/internal/testdata/sdk/mergent/fern/definition/__package__.yml @@ -164,8 +164,8 @@ types: type: optional errors: docs: >- - If multiple errors occured (e.g., with param validation), the list of - errors that occured. + If multiple errors occurred (e.g., with param validation), the list of + errors that occurred. type: optional> service: diff --git a/generators/go/internal/testdata/sdk/mergent/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/mergent/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/mergent/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/mergent/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/mergent/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/mergent/fixtures/option/request_option.go index cf3795158b9..5d464c29acd 100644 --- a/generators/go/internal/testdata/sdk/mergent/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/mergent/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/mergent/fixtures/types.go b/generators/go/internal/testdata/sdk/mergent/fixtures/types.go index b42502fb96a..cec9a2134ef 100644 --- a/generators/go/internal/testdata/sdk/mergent/fixtures/types.go +++ b/generators/go/internal/testdata/sdk/mergent/fixtures/types.go @@ -37,7 +37,7 @@ type Error struct { Message *string `json:"message,omitempty" url:"message,omitempty"` // If the error is parameter-specific, the parameter related to the error. Param *string `json:"param,omitempty" url:"param,omitempty"` - // If multiple errors occured (e.g., with param validation), the list of errors that occured. + // If multiple errors occurred (e.g., with param validation), the list of errors that occurred. Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"` extraProperties map[string]interface{} diff --git a/generators/go/internal/testdata/sdk/mergent/ir.json b/generators/go/internal/testdata/sdk/mergent/ir.json index 9f6bbdae06e..7d1fcef1481 100644 --- a/generators/go/internal/testdata/sdk/mergent/ir.json +++ b/generators/go/internal/testdata/sdk/mergent/ir.json @@ -2202,7 +2202,7 @@ } }, "availability": null, - "docs": "If multiple errors occured (e.g., with param validation), the list of errors that occured." + "docs": "If multiple errors occurred (e.g., with param validation), the list of errors that occurred." } ], "extra-properties": false, diff --git a/generators/go/internal/testdata/sdk/multi-environments/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/multi-environments/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/multi-environments/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/multi-environments/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/multi-environments/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/multi-environments/fixtures/option/request_option.go index 85819fb25e2..36a829232ff 100644 --- a/generators/go/internal/testdata/sdk/multi-environments/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/multi-environments/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/optional-core/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/optional-core/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/optional-core/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/optional-core/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/optional-core/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/optional-core/fixtures/option/request_option.go index 51322106fca..332cc928bd1 100644 --- a/generators/go/internal/testdata/sdk/optional-core/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/optional-core/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/optional-filename/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/optional-filename/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/optional-filename/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/optional-filename/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/optional-filename/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/optional-filename/fixtures/option/request_option.go index 0fddc719006..2d374745c22 100644 --- a/generators/go/internal/testdata/sdk/optional-filename/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/optional-filename/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/optional-response/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/optional-response/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/optional-response/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/optional-response/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/optional-response/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/optional-response/fixtures/option/request_option.go index cb8202fcc2e..4d6dd98d938 100644 --- a/generators/go/internal/testdata/sdk/optional-response/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/optional-response/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/packages/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/packages/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/packages/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/packages/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/packages/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/packages/fixtures/option/request_option.go index e1c2313c084..c162df9d9ec 100644 --- a/generators/go/internal/testdata/sdk/packages/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/packages/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/option/request_option.go index 7e22e8f569c..650fb2b73f6 100644 --- a/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/path-and-query-params/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/path-params/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/path-params/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/path-params/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/path-params/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/path-params/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/path-params/fixtures/option/request_option.go index 96310f32008..8523b87bef1 100644 --- a/generators/go/internal/testdata/sdk/path-params/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/path-params/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/platform-headers/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/platform-headers/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/platform-headers/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/platform-headers/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/platform-headers/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/platform-headers/fixtures/option/request_option.go index 9cc0084dbe3..a9f92723651 100644 --- a/generators/go/internal/testdata/sdk/platform-headers/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/platform-headers/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/pointer-core/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/pointer-core/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/pointer-core/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/pointer-core/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/pointer-core/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/pointer-core/fixtures/option/request_option.go index 350f15c62f8..a05217f9b0a 100644 --- a/generators/go/internal/testdata/sdk/pointer-core/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/pointer-core/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/pointer-filename/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/pointer-filename/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/pointer-filename/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/pointer-filename/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/pointer-filename/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/pointer-filename/fixtures/option/request_option.go index 5f2988defa0..81f0ca656ba 100644 --- a/generators/go/internal/testdata/sdk/pointer-filename/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/pointer-filename/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/option/request_option.go index ce2b6a46476..1f3f566a305 100644 --- a/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/post-with-path-params-generics/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/option/request_option.go index 54a58da81f9..2c28b09bf29 100644 --- a/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/post-with-path-params/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/query-params-complex/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/query-params-complex/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/query-params-complex/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/query-params-complex/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/query-params-complex/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/query-params-complex/fixtures/option/request_option.go index 5670ae250a7..732d3bb8a81 100644 --- a/generators/go/internal/testdata/sdk/query-params-complex/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/query-params-complex/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/option/request_option.go index bf3810685c3..a69cad40d15 100644 --- a/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/query-params-multiple/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/query-params/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/query-params/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/query-params/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/query-params/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/query-params/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/query-params/fixtures/option/request_option.go index 37613dbf5ee..7e3fd4d3c06 100644 --- a/generators/go/internal/testdata/sdk/query-params/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/query-params/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/root/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/root/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/root/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/root/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/root/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/root/fixtures/option/request_option.go index 7aa33cbd088..7275a8603b2 100644 --- a/generators/go/internal/testdata/sdk/root/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/root/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/internal/testdata/sdk/upload/fixtures/internal/retrier.go b/generators/go/internal/testdata/sdk/upload/fixtures/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/generators/go/internal/testdata/sdk/upload/fixtures/internal/retrier.go +++ b/generators/go/internal/testdata/sdk/upload/fixtures/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/generators/go/internal/testdata/sdk/upload/fixtures/option/request_option.go b/generators/go/internal/testdata/sdk/upload/fixtures/option/request_option.go index e8c83f6583d..cb98fd5adb0 100644 --- a/generators/go/internal/testdata/sdk/upload/fixtures/option/request_option.go +++ b/generators/go/internal/testdata/sdk/upload/fixtures/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/generators/go/model/versions.yml b/generators/go/model/versions.yml index 2ea22fbfb78..3600367dc21 100644 --- a/generators/go/model/versions.yml +++ b/generators/go/model/versions.yml @@ -29,7 +29,7 @@ summary: Fix literal value deserialization. changed: - >- - Updates object and undisriminated union deserialization to return an + Updates object and undiscriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. irVersion: 40 - version: 0.23.0 @@ -292,7 +292,7 @@ - type: fix summary: Support boolean literals. - type: fix - summary: Union subt-ypes with no properties are now go 1.13 compatible. + summary: Union subtypes with no properties are now go 1.13 compatible. irVersion: 28 - version: 0.9.0 createdAt: '2023-10-31' diff --git a/generators/go/sdk/versions.yml b/generators/go/sdk/versions.yml index 704363fef30..187d170bbcf 100644 --- a/generators/go/sdk/versions.yml +++ b/generators/go/sdk/versions.yml @@ -328,7 +328,7 @@ summary: Fix literal value deserialization. changed: - >- - Updates object and undisriminated union deserialization to return an + Updates object and undiscriminated union deserialization to return an error whenever any literal values do not exist or are mismatched. irVersion: 40 - version: 0.23.0 @@ -591,7 +591,7 @@ - type: fix summary: Support boolean literals. - type: fix - summary: Union subt-ypes with no properties are now go 1.13 compatible. + summary: Union subtypes with no properties are now go 1.13 compatible. irVersion: 28 - version: 0.9.0 createdAt: '2023-10-31' diff --git a/generators/java/generator-utils/src/main/java/com/fern/java/generators/UndiscriminatedUnionGenerator.java b/generators/java/generator-utils/src/main/java/com/fern/java/generators/UndiscriminatedUnionGenerator.java index 4c5486ca4d9..53ba1e1ae83 100644 --- a/generators/java/generator-utils/src/main/java/com/fern/java/generators/UndiscriminatedUnionGenerator.java +++ b/generators/java/generator-utils/src/main/java/com/fern/java/generators/UndiscriminatedUnionGenerator.java @@ -382,7 +382,7 @@ private TypeSpec getDeserializer() { .addModifiers(Modifier.PUBLIC) .returns(className) .addParameter(JsonParser.class, "p") - .addParameter(DeserializationContext.class, "ctxt") + .addParameter(DeserializationContext.class, "context") .addException(IOException.class) .addAnnotation(ClassName.get("", "java.lang.Override")) .addStatement( diff --git a/generators/java/generator-utils/src/main/java/com/fern/java/generators/object/BuilderGenerator.java b/generators/java/generator-utils/src/main/java/com/fern/java/generators/object/BuilderGenerator.java index 0441e3e318a..c54087610f5 100644 --- a/generators/java/generator-utils/src/main/java/com/fern/java/generators/object/BuilderGenerator.java +++ b/generators/java/generator-utils/src/main/java/com/fern/java/generators/object/BuilderGenerator.java @@ -360,8 +360,8 @@ private MethodSpec.Builder getBaseBuildMethod() { } private MethodSpec.Builder getDefaultSetterForImpl( - EnrichedObjectPropertyWithField enrichedObjectProperty, ClassName returnClass, boolean isOverriden) { - MethodSpec.Builder methodBuilder = getDefaultSetter(enrichedObjectProperty, returnClass, isOverriden); + EnrichedObjectPropertyWithField enrichedObjectProperty, ClassName returnClass, boolean isOverridden) { + MethodSpec.Builder methodBuilder = getDefaultSetter(enrichedObjectProperty, returnClass, isOverridden); if (enrichedObjectProperty.enrichedObjectProperty.wireKey().isPresent()) { methodBuilder.addAnnotation(AnnotationSpec.builder(JsonSetter.class) .addMember( @@ -378,7 +378,7 @@ private MethodSpec.Builder getDefaultSetterForImpl( } private MethodSpec.Builder getDefaultSetter( - EnrichedObjectPropertyWithField enrichedProperty, ClassName returnClass, boolean isOverriden) { + EnrichedObjectPropertyWithField enrichedProperty, ClassName returnClass, boolean isOverridden) { TypeName poetTypeName = enrichedProperty.enrichedObjectProperty.poetTypeName(); FieldSpec fieldSpec = enrichedProperty.fieldSpec; MethodSpec.Builder setter = MethodSpec.methodBuilder(fieldSpec.name) @@ -386,7 +386,7 @@ private MethodSpec.Builder getDefaultSetter( ParameterSpec.builder(poetTypeName, fieldSpec.name).build()) .addModifiers(Modifier.PUBLIC) .returns(returnClass); - if (isOverriden) { + if (isOverridden) { setter.addAnnotation(ClassName.get("", "java.lang.Override")); } return setter; @@ -529,17 +529,17 @@ private static MethodSpec.Builder createMapEntryAppender( EnrichedObjectPropertyWithField enrichedObjectProperty, ParameterizedTypeName mapTypeName, ClassName returnClass, - boolean isOverriden) { + boolean isOverridden) { String fieldName = enrichedObjectProperty.fieldSpec.name; TypeName keyTypeName = getIndexedTypeArgumentOrThrow(mapTypeName, 0); TypeName valueTypeName = getIndexedTypeArgumentOrThrow(mapTypeName, 1); MethodSpec.Builder setter = defaultSetter(fieldName, returnClass) .addParameter(keyTypeName, StageBuilderConstants.MAP_ITEM_APPENDER_KEY_PARAMETER_NAME) .addParameter(valueTypeName, StageBuilderConstants.MAP_ITEM_APPENDER_VALUE_PARAMETER_NAME); - if (isOverriden) { + if (isOverridden) { setter.addAnnotation(ClassName.get("", "java.lang.Override")); } - if (isOverriden && enrichedObjectProperty.enrichedObjectProperty.docs().isPresent()) { + if (isOverridden && enrichedObjectProperty.enrichedObjectProperty.docs().isPresent()) { setter.addJavadoc(JavaDocUtils.render( enrichedObjectProperty.enrichedObjectProperty.docs().get())); setter.addJavadoc(JavaDocUtils.getReturnDocs(CHAINED_RETURN_DOCS)); diff --git a/generators/java/generator-utils/src/main/resources/Stream.java b/generators/java/generator-utils/src/main/resources/Stream.java index 91fab23d549..554736ee768 100644 --- a/generators/java/generator-utils/src/main/resources/Stream.java +++ b/generators/java/generator-utils/src/main/resources/Stream.java @@ -4,7 +4,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -18,7 +18,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/generators/java/sdk/src/main/java/com/fern/java/client/generators/WrappedRequestGenerator.java b/generators/java/sdk/src/main/java/com/fern/java/client/generators/WrappedRequestGenerator.java index fe6c407f7b3..86191ec6ac1 100644 --- a/generators/java/sdk/src/main/java/com/fern/java/client/generators/WrappedRequestGenerator.java +++ b/generators/java/sdk/src/main/java/com/fern/java/client/generators/WrappedRequestGenerator.java @@ -253,7 +253,7 @@ public RequestBodyGetter visitBytes(BytesRequest bytes) { @Override public RequestBodyGetter _visitUnknown(Object unknownType) { - throw new RuntimeException("Encountered unknown http requeset body: " + unknownType); + throw new RuntimeException("Encountered unknown http request body: " + unknownType); } } @@ -324,7 +324,7 @@ public List visitBytes(BytesRequest bytes) { @Override public List _visitUnknown(Object unknownType) { - throw new RuntimeException("Encountered unknown http requeset body: " + unknownType); + throw new RuntimeException("Encountered unknown http request body: " + unknownType); } } } diff --git a/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/AbstractEndpointWriter.java b/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/AbstractEndpointWriter.java index be64de60ed0..185bccc4b55 100644 --- a/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/AbstractEndpointWriter.java +++ b/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/AbstractEndpointWriter.java @@ -264,7 +264,7 @@ public Optional _visitUnknown(Object o) { httpEndpoint, contentType, generatedObjectMapper, - generatedHttpUrl.inlinableBuild(), + generatedHttpUrl.inlineableBuild(), sendContentType); endpointMethodBuilder.addCode(requestInitializer); @@ -294,7 +294,7 @@ public Optional _visitUnknown(Object o) { MethodSpec endpointWithoutRequest = null; if (sdkRequest().isPresent() && sdkRequest().get().getShape().visit(new SdkRequestIsOptional())) { - MethodSpec.Builder endpointWithoutRequestBldr = MethodSpec.methodBuilder(endpointWithRequestOptions.name) + MethodSpec.Builder endpointWithoutRequestBuilder = MethodSpec.methodBuilder(endpointWithRequestOptions.name) .addJavadoc(endpointWithRequestOptions.javadoc) .addModifiers(Modifier.PUBLIC) .addParameters(pathParameters) @@ -306,7 +306,7 @@ public Optional _visitUnknown(Object o) { .getCamelCase() .getUnsafeName())) .collect(Collectors.toList()); - endpointWithoutRequestBldr.addParameters(additionalParamsWithoutBody); + endpointWithoutRequestBuilder.addParameters(additionalParamsWithoutBody); List paramNamesWoBody = Stream.concat(pathParameters.stream(), additionalParamsWithoutBody.stream()) .map(parameterSpec -> parameterSpec.name) .collect(Collectors.toList()); @@ -323,7 +323,7 @@ public Optional _visitUnknown(Object o) { } else { paramNamesWoBody.add("$T.builder().build()"); } - endpointWithoutRequest = endpointWithoutRequestBldr + endpointWithoutRequest = endpointWithoutRequestBuilder .addStatement( endpointWithRequestOptions.returnType.equals(TypeName.VOID) ? endpointWithRequestOptions.name + "(" + String.join(",", paramNamesWoBody) + ")" @@ -817,7 +817,7 @@ public String visitBody(ObjectProperty objectProperty) { @Override public String _visitUnknown(Object o) { - throw new IllegalArgumentException("Unkown request property value type."); + throw new IllegalArgumentException("Unknown request property value type."); } }); httpResponseBuilder.addStatement( diff --git a/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/HttpUrlBuilder.java b/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/HttpUrlBuilder.java index 08c8adc75c7..de0e2be0ac2 100644 --- a/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/HttpUrlBuilder.java +++ b/generators/java/sdk/src/main/java/com/fern/java/client/generators/endpoint/HttpUrlBuilder.java @@ -48,7 +48,7 @@ public final class HttpUrlBuilder { private final GeneratedClientOptions generatedClientOptions; private final Map servicePathParameters; private final Map endpointPathParameters; - private final boolean hasOptionalPathParms; + private final boolean hasOptionalPathParams; private final boolean inlinePathParams; public HttpUrlBuilder( @@ -71,7 +71,7 @@ public HttpUrlBuilder( this.httpService = httpService; this.servicePathParameters = servicePathParameters; this.endpointPathParameters = endpointPathParameters; - this.hasOptionalPathParms = Stream.concat( + this.hasOptionalPathParams = Stream.concat( servicePathParameters.values().stream(), endpointPathParameters.values().stream()) .anyMatch(pathParamInfo -> pathParamInfo.irParam().getValueType().getContainer().isPresent() @@ -103,7 +103,7 @@ public HttpUrlBuilder( } public GeneratedHttpUrl generateBuilder(List queryParamProperties) { - boolean shouldInline = queryParamProperties.isEmpty() && !hasOptionalPathParms; + boolean shouldInline = queryParamProperties.isEmpty() && !hasOptionalPathParams; if (shouldInline) { return generateInlineableCodeBlock(); } else { @@ -122,7 +122,7 @@ private GeneratedHttpUrl generateInlineableCodeBlock() { codeBlock.add(".build();\n").unindent(); return GeneratedHttpUrl.builder() .initialization(codeBlock.build()) - .inlinableBuild(CodeBlock.of(httpUrlname)) + .inlineableBuild(CodeBlock.of(httpUrlname)) .build(); } @@ -161,7 +161,7 @@ private GeneratedHttpUrl generateUnInlineableCodeBlock(List { addGeneratedFile(generatedSpringServerInterface); - generatedSpringServerInterface.geenratedRequestBodyFiles().forEach(this::addGeneratedFile); + generatedSpringServerInterface.generatedRequestBodyFiles().forEach(this::addGeneratedFile); }); } diff --git a/generators/java/spring/src/main/java/com/fern/java/spring/GeneratedSpringServerInterface.java b/generators/java/spring/src/main/java/com/fern/java/spring/GeneratedSpringServerInterface.java index 90717f6a3e6..3f3825bdc7b 100644 --- a/generators/java/spring/src/main/java/com/fern/java/spring/GeneratedSpringServerInterface.java +++ b/generators/java/spring/src/main/java/com/fern/java/spring/GeneratedSpringServerInterface.java @@ -25,7 +25,7 @@ @StagedBuilderImmutablesStyle public abstract class GeneratedSpringServerInterface extends AbstractGeneratedJavaFile { - public abstract List geenratedRequestBodyFiles(); + public abstract List generatedRequestBodyFiles(); public static ImmutableGeneratedSpringServerInterface.ClassNameBuildStage builder() { return ImmutableGeneratedSpringServerInterface.builder(); diff --git a/generators/java/spring/src/main/java/com/fern/java/spring/generators/SpringServerInterfaceGenerator.java b/generators/java/spring/src/main/java/com/fern/java/spring/generators/SpringServerInterfaceGenerator.java index 9bc35e79339..85c5a8bf254 100644 --- a/generators/java/spring/src/main/java/com/fern/java/spring/generators/SpringServerInterfaceGenerator.java +++ b/generators/java/spring/src/main/java/com/fern/java/spring/generators/SpringServerInterfaceGenerator.java @@ -92,7 +92,7 @@ public GeneratedSpringServerInterface generateFile() { return GeneratedSpringServerInterface.builder() .className(className) .javaFile(springServiceJavaFile) - .addAllGeenratedRequestBodyFiles(generatedRequestBodyFiles) + .addAllGeneratedRequestBodyFiles(generatedRequestBodyFiles) .build(); } diff --git a/generators/java/spring/versions.yml b/generators/java/spring/versions.yml index 6a14637be22..bec99a670d7 100644 --- a/generators/java/spring/versions.yml +++ b/generators/java/spring/versions.yml @@ -60,7 +60,7 @@ ``` type: break - summary: | - Generated builder methods now enforce non-null checks for required fields, ensuring that all required + Generated builder methods now enforce non-null checks for required fields, ensuring that all required fields are properly validated during object construction: ```java @java.lang.Override @@ -163,7 +163,7 @@ version: 0.7.1 - changelogEntry: - - summary: Intialize this changelog + - summary: Initialize this changelog type: fix createdAt: '2024-02-03' version: 0.6.1 diff --git a/generators/openapi/CHANGELOG.md b/generators/openapi/CHANGELOG.md index 32f014e9970..179c872b06b 100644 --- a/generators/openapi/CHANGELOG.md +++ b/generators/openapi/CHANGELOG.md @@ -18,4 +18,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.0.30] - 2024-01-21 -- Chore: Intialize this changelog \ No newline at end of file +- Chore: Initialize this changelog \ No newline at end of file diff --git a/generators/openapi/src/converters/servicesConverter.ts b/generators/openapi/src/converters/servicesConverter.ts index 91b05428ce5..0ed28a2958b 100644 --- a/generators/openapi/src/converters/servicesConverter.ts +++ b/generators/openapi/src/converters/servicesConverter.ts @@ -331,7 +331,7 @@ function convertRequestBody({ }; }, _other: () => { - throw new Error("Unkonwn FileUploadRequestProperty: " + property.type); + throw new Error("Unknown FileUploadRequestProperty: " + property.type); } }); return { diff --git a/generators/openapi/versions.yml b/generators/openapi/versions.yml index a9fa8c3cd64..9e6e02cba9a 100644 --- a/generators/openapi/versions.yml +++ b/generators/openapi/versions.yml @@ -2,7 +2,7 @@ createdAt: '2025-01-24' changelogEntry: - type: fix - summary: | + summary: | The generator now correctly handles different success response codes. irVersion: 53 @@ -10,7 +10,7 @@ createdAt: '2024-12-20' changelogEntry: - type: fix - summary: | + summary: | The generator now correctly handles float types when converting to OpenAPI specs. irVersion: 53 @@ -18,39 +18,39 @@ createdAt: '2024-10-06' changelogEntry: - type: fix - summary: | - The generator now adds paraemter level examples for global parameters. + summary: | + The generator now adds parameter level examples for global parameters. irVersion: 53 - version: 0.1.4 createdAt: '2024-09-25' changelogEntry: - type: fix - summary: | - The generator now handles `config.filename` being null so that the - configuration for the generator can continue to be backwards compatible. + summary: | + The generator now handles `config.filename` being null so that the + configuration for the generator can continue to be backwards compatible. irVersion: 53 - version: 0.1.3 createdAt: '2024-09-25' changelogEntry: - type: fix - summary: | - The OpenAPI generator now supports adding patterns to any string references. + summary: | + The OpenAPI generator now supports adding patterns to any string references. irVersion: 53 - version: 0.1.2 createdAt: '2024-09-25' changelogEntry: - type: feat - summary: | + summary: | The OpenAPI generator now supports a configuration to define the name of the file that you would like to output. ```yml generators.yml - name: fernapi/fern-openapi version: 0.1.2 - config: + config: filename: My-Openapi.yml ``` irVersion: 53 @@ -59,17 +59,17 @@ createdAt: '2024-09-25' changelogEntry: - type: fix - summary: | - The `customOverrides` configuration flag now supports explict nulls as a way to - delete keys in the generated OpenAPI spec. For example, if you want to - exclude the `openapi.info` block in the generated spec, then you can do something - along the lines: + summary: | + The `customOverrides` configuration flag now supports explicit nulls as a way to + delete keys in the generated OpenAPI spec. For example, if you want to + exclude the `openapi.info` block in the generated spec, then you can do something + along the lines: ```yml generators.yml - name: fernapi/fern-openapi version: 0.1.1 - config: - customOverrides: + config: + customOverrides: info: null # excludes the info field ``` irVersion: 53 @@ -78,18 +78,18 @@ createdAt: '2024-09-25' changelogEntry: - type: chore - summary: | - The OpenAPI generator now uses version 53 of the IR (previously was on version 23). You - will need to upgrade your Fern CLI to the latest to run this version of the OpenAPI - generator. + summary: | + The OpenAPI generator now uses version 53 of the IR (previously was on version 23). You + will need to upgrade your Fern CLI to the latest to run this version of the OpenAPI + generator. irVersion: 53 - version: 0.0.32 createdAt: '2024-03-24' changelogEntry: - type: fix - summary: | - The generated OpenAPI spec now takes into account global path parameters. + summary: | + The generated OpenAPI spec now takes into account global path parameters. irVersion: 23 - version: 0.0.31 diff --git a/generators/php/codegen/src/asIs/File.Template.php b/generators/php/codegen/src/asIs/File.Template.php index dc795035418..0b40f3c8bdc 100644 --- a/generators/php/codegen/src/asIs/File.Template.php +++ b/generators/php/codegen/src/asIs/File.Template.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/generators/php/codegen/src/ast/DataClass.ts b/generators/php/codegen/src/ast/DataClass.ts index ecf11cdccf8..46a4b096a30 100644 --- a/generators/php/codegen/src/ast/DataClass.ts +++ b/generators/php/codegen/src/ast/DataClass.ts @@ -37,8 +37,8 @@ export class DataClass extends AstNode { public addMethod(method: Method): void { this.class_.addMethod(method); } - public addTrait(traitClassRefeference: ClassReference): void { - this.class_.addTrait(traitClassRefeference); + public addTrait(traitClassReference: ClassReference): void { + this.class_.addTrait(traitClassReference); } public write(writer: Writer): void { diff --git a/generators/php/codegen/src/context/PhpAttributeMapper.ts b/generators/php/codegen/src/context/PhpAttributeMapper.ts index a83ef05330b..620ada971e2 100644 --- a/generators/php/codegen/src/context/PhpAttributeMapper.ts +++ b/generators/php/codegen/src/context/PhpAttributeMapper.ts @@ -15,7 +15,7 @@ export declare namespace PhpAttributeMapper { interface Args { type: php.Type; - // TODO: Remove the 'Pick' once 'availablity' is available on the InlinedRequestBodyProperty. + // TODO: Remove the 'Pick' once 'availability' is available on the InlinedRequestBodyProperty. property: Pick; } } diff --git a/generators/python/core_utilities/sdk/pagination.py b/generators/python/core_utilities/sdk/pagination.py index b4a68480ebf..1dea032603d 100644 --- a/generators/python/core_utilities/sdk/pagination.py +++ b/generators/python/core_utilities/sdk/pagination.py @@ -8,7 +8,7 @@ T = typing.TypeVar("T") -# SDKs implement a Page ABC per-pagination request, the endpoint then retuns a pager that wraps this type +# SDKs implement a Page ABC per-pagination request, the endpoint then returns a pager that wraps this type # for example, an endpoint will return SyncPager[UserPage] where UserPage implements the Page ABC. ex: # # SyncPager( diff --git a/generators/python/core_utilities/shared/http_client.py b/generators/python/core_utilities/shared/http_client.py index 5e4cf03b391..a2655770182 100644 --- a/generators/python/core_utilities/shared/http_client.py +++ b/generators/python/core_utilities/shared/http_client.py @@ -83,8 +83,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/generators/python/core_utilities/shared/pydantic_utilities.py b/generators/python/core_utilities/shared/pydantic_utilities.py index ea12883cae3..63e53340352 100644 --- a/generators/python/core_utilities/shared/pydantic_utilities.py +++ b/generators/python/core_utilities/shared/pydantic_utilities.py @@ -77,7 +77,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -126,7 +126,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/core_utilities/shared/with_pydantic_aliases/pydantic_utilities.py b/generators/python/core_utilities/shared/with_pydantic_aliases/pydantic_utilities.py index 94ce9bfdfef..45017535965 100644 --- a/generators/python/core_utilities/shared/with_pydantic_aliases/pydantic_utilities.py +++ b/generators/python/core_utilities/shared/with_pydantic_aliases/pydantic_utilities.py @@ -78,7 +78,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -97,7 +97,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/pydantic_utilities.py b/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/pydantic_utilities.py index a34f7084a69..31c3d704cd5 100644 --- a/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/pydantic_utilities.py +++ b/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/pydantic_utilities.py @@ -78,7 +78,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/with_aliases/pydantic_utilities.py b/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/with_aliases/pydantic_utilities.py index c7c8b47f6f0..6b6184d3a3a 100644 --- a/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/with_aliases/pydantic_utilities.py +++ b/generators/python/core_utilities/shared/with_pydantic_v1_on_v2/with_aliases/pydantic_utilities.py @@ -58,7 +58,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -74,7 +74,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/sdk/CHANGELOG.md b/generators/python/sdk/CHANGELOG.md index 3a93bae5fae..cbee3f487d6 100644 --- a/generators/python/sdk/CHANGELOG.md +++ b/generators/python/sdk/CHANGELOG.md @@ -207,8 +207,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2.16.0] - 2024-07-16 -- Improvement: The generated SDK now allows for specifying whether or not to generate `streaming` functions as overloaded functions or suparate functions. - Concretely, you can now specifiy whether or not you'd prefer the generation of your streaming functions as: +- Improvement: The generated SDK now allows for specifying whether or not to generate `streaming` functions as overloaded functions or separate functions. + Concretely, you can now specify whether or not you'd prefer the generation of your streaming functions as: ``` def chat(...) -> ChatResponse: @@ -307,7 +307,7 @@ generators: ## [2.14.0-rc1] - 2024-06-27 -- Fix: the fix from 2.5.2 is now case-insentitive +- Fix: the fix from 2.5.2 is now case-insensitive Recap of 2.5.2: `Fix: Support `list`SDK method names instead of defaulting to`list\_`.` ## [2.14.0-rc0] - 2024-06-26 @@ -417,8 +417,8 @@ generators: ## [2.9.3] - 2024-06-06 -- Fix: Snippet templates for discrminated unions now specify the `template_input` property which is - required to actually see snippets of instantiating discrminated unions. +- Fix: Snippet templates for discriminated unions now specify the `template_input` property which is + required to actually see snippets of instantiating discriminated unions. ## [2.9.2] - 2024-06-06 @@ -563,7 +563,7 @@ generators: ## [2.2.2] - 2024-05-20 -- Fix: Inline request parameters now deconflict in naming with the unnamed path parameter arguments. Previously, when inlining request parameters into the method signature, we would not deconflict naming with the unnamed args preceeding them. Now, conflicting unnamed parameters are post-fixed with an "\_". +- Fix: Inline request parameters now deconflict in naming with the unnamed path parameter arguments. Previously, when inlining request parameters into the method signature, we would not deconflict naming with the unnamed args preceding them. Now, conflicting unnamed parameters are post-fixed with an "\_". Before: @@ -719,7 +719,7 @@ def method_name(id_: str, *, id: str) -> None: boto3: 1.28.57 ``` - These will then populare your `pyproject.toml` automatically: + These will then populate your `pyproject.toml` automatically: ```toml ... @@ -831,7 +831,7 @@ def method_name(id_: str, *, id: str) -> None: ## [1.4.0-rc3] - 2024-04-24 -- Fix: Set `mypy` dev depenency in generated `pyproject.toml` to `1.9.0`. +- Fix: Set `mypy` dev dependency in generated `pyproject.toml` to `1.9.0`. This prevents upstream `mypy` bugs from affecting user builds. Note that this is only a dev dependency, so it does not affect the behavior of the SDK. @@ -895,7 +895,7 @@ def method_name(id_: str, *, id: str) -> None: ## [1.1.0-rc0] - 2024-04-03 -- [EXPERIMENTAL] Feature: The python SDK now includes a configuration option to skip pydantic validation. This ensures that Pydantic does not immediately fail if the model being returned from an API does not exactly match the Pydantic model. This is meant to add flexibility, should your SDK fall behind your API, but should be used sparringly, as the type-hinting for users will still reflect the Pydantic model exactly. +- [EXPERIMENTAL] Feature: The python SDK now includes a configuration option to skip pydantic validation. This ensures that Pydantic does not immediately fail if the model being returned from an API does not exactly match the Pydantic model. This is meant to add flexibility, should your SDK fall behind your API, but should be used sparingly, as the type-hinting for users will still reflect the Pydantic model exactly. ```yaml generators: @@ -1110,7 +1110,7 @@ print(seed.__version__) # prints 0.0.1 or whatever version is contained within exported_filename: client.py ``` - Often times you may want to add additional methods or utilites to the + Often times you may want to add additional methods or utilities to the generated client. The easiest way to do this is to configure Fern to write the autogenerated client in another file and extend it on your own. @@ -1224,11 +1224,11 @@ print(seed.__version__) # prints 0.0.1 or whatever version is contained within ``` Enabling improved imports will remove the verbose `resources` directory in the SDK and make the imports - shorter. This will also improve the imports from Pylance and Pyright that are automaticaly generated + shorter. This will also improve the imports from Pylance and Pyright that are automatically generated ```python # Before - from sdk.resources.fhir import Paient + from sdk.resources.fhir import Patient # After from sdk.fhir import Patient @@ -1505,4 +1505,4 @@ print(seed.__version__) # prints 0.0.1 or whatever version is contained within ## [0.7.7] - 2024-01-21 -- Chore: Intialize this changelog +- Chore: Initialize this changelog diff --git a/generators/python/sdk/features.yml b/generators/python/sdk/features.yml index 43fea4f09b2..7c13c80f7e8 100644 --- a/generators/python/sdk/features.yml +++ b/generators/python/sdk/features.yml @@ -23,10 +23,10 @@ features: - id: RETRIES description: | The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long - as the request is deemed retriable and the number of retry attempts has not grown larger than the configured + as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). - A request is deemed retriable when any of the following HTTP status codes is returned: + A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/generators/python/sdk/versions.yml b/generators/python/sdk/versions.yml index 307dcda6edf..482eccdd04c 100644 --- a/generators/python/sdk/versions.yml +++ b/generators/python/sdk/versions.yml @@ -5,7 +5,7 @@ changelogEntry: - type: fix summary: | - pyproject.toml now has a `[project]` block making it Poetry v2 compatible. + pyproject.toml now has a `[project]` block making it Poetry v2 compatible. - version: 4.3.10 irVersion: 53 @@ -62,14 +62,14 @@ - type: fix summary: | The generator now writes the reference.md configuration correctly, using `.dict()` instead of `.json()`. - + - version: 4.3.2 irVersion: 53 changelogEntry: - type: fix summary: | The generator will now correctly default to the configured global `default_bytes_stream_chunk_size` when the `request_options` parameter is not provided. - + - version: 4.3.1 irVersion: 53 changelogEntry: @@ -169,7 +169,7 @@ - type: fix summary: | Datetime examples are generated correctly once again. - The `pydantic_utilites` file is python 3.8 compatible. + The `pydantic_utilities` file is python 3.8 compatible. - version: 4.2.3 irVersion: 53 @@ -285,7 +285,7 @@ changelogEntry: - type: fix summary: | - Pydantic models now call update forward refs on non-uion circular references. This + Pydantic models now call update forward refs on non-union circular references. This prevents runtime errors in certain cases where types self reference itself through a union. @@ -294,7 +294,7 @@ changelogEntry: - type: fix summary: | - Pydantic models now call update forward refs on non-uion circular references. This + Pydantic models now call update forward refs on non-union circular references. This prevents runtime errors in certain cases where types self reference itself through a union. @@ -303,7 +303,7 @@ changelogEntry: - type: fix summary: | - Pydantic models now call update forward refs on non-uion circular references. This + Pydantic models now call update forward refs on non-union circular references. This prevents runtime errors in certain cases where types self reference itself through a union. @@ -312,7 +312,7 @@ changelogEntry: - type: fix summary: | - Pydantic models now call update forward refs on non-uion circular references. This + Pydantic models now call update forward refs on non-union circular references. This prevents runtime errors in certain cases where types self reference itself through a union. @@ -777,10 +777,10 @@ createdAt: "2024-06-27" changelogEntry: - type: fix - summary: The fix from 2.5.2 is now case-insentitive + summary: The fix from 2.5.2 is now case-insensitive fixed: - >- - the fix from 2.5.2 is now case-insentitive Recap of 2.5.2: `Fix: Support + the fix from 2.5.2 is now case-insensitive Recap of 2.5.2: `Fix: Support `list`SDK method names instead of defaulting to`list\_`.` irVersion: 49 @@ -928,7 +928,7 @@ createdAt: "2024-06-06" changelogEntry: - type: fix - summary: Snippet templates for discrminated unions now specify the `template_input` property which is required to actually see snippets of instantiating discrminated unions. + summary: Snippet templates for discriminated unions now specify the `template_input` property which is required to actually see snippets of instantiating discriminated unions. irVersion: 39 - version: 2.9.2 @@ -1178,7 +1178,7 @@ Inline request parameters now deconflict in naming with the unnamed path parameter arguments. Previously, when inlining request parameters into the method signature, we would not deconflict naming with the unnamed - args preceeding them. Now, conflicting unnamed parameters are post-fixed + args preceding them. Now, conflicting unnamed parameters are post-fixed with an "_". irVersion: 39 @@ -1349,7 +1349,7 @@ summary: pin mypy dependency to 1.9.0 to prevent introducing upstream bugs fixed: - >- - Set `mypy` dev depenency in generated `pyproject.toml` to `1.9.0`. This + Set `mypy` dev dependency in generated `pyproject.toml` to `1.9.0`. This prevents upstream `mypy` bugs from affecting user builds. Note that this is only a dev dependency, so it does not affect the behavior of the SDK. - Temporarily disable unit test generation. @@ -1465,7 +1465,7 @@ option to skip pydantic validation. This ensures that Pydantic does not immediately fail if the model being returned from an API does not exactly match the Pydantic model. This is meant to add flexibility, - should your SDK fall behind your API, but should be used sparringly, as + should your SDK fall behind your API, but should be used sparingly, as the type-hinting for users will still reflect the Pydantic model exactly. irVersion: 37 diff --git a/generators/python/src/fern_python/codegen/ast/references/__init__.py b/generators/python/src/fern_python/codegen/ast/references/__init__.py index 972dd1badb8..b730ff436df 100644 --- a/generators/python/src/fern_python/codegen/ast/references/__init__.py +++ b/generators/python/src/fern_python/codegen/ast/references/__init__.py @@ -1,7 +1,7 @@ from .class_reference import ClassReference from .module import Module from .module_path import ModulePath -from .qualfied_name import QualifiedName +from .qualified_name import QualifiedName from .reference import Reference, ReferenceImport __all__ = [ diff --git a/generators/python/src/fern_python/codegen/ast/references/module_path.py b/generators/python/src/fern_python/codegen/ast/references/module_path.py index 00cc524bb3a..ee6e48e35b6 100644 --- a/generators/python/src/fern_python/codegen/ast/references/module_path.py +++ b/generators/python/src/fern_python/codegen/ast/references/module_path.py @@ -1,3 +1,3 @@ -from .qualfied_name import QualifiedName +from .qualified_name import QualifiedName ModulePath = QualifiedName diff --git a/generators/python/src/fern_python/codegen/ast/references/qualfied_name.py b/generators/python/src/fern_python/codegen/ast/references/qualified_name.py similarity index 100% rename from generators/python/src/fern_python/codegen/ast/references/qualfied_name.py rename to generators/python/src/fern_python/codegen/ast/references/qualified_name.py diff --git a/generators/python/src/fern_python/codegen/ast/references/reference.py b/generators/python/src/fern_python/codegen/ast/references/reference.py index 229b49205b0..9657f2d7243 100644 --- a/generators/python/src/fern_python/codegen/ast/references/reference.py +++ b/generators/python/src/fern_python/codegen/ast/references/reference.py @@ -4,7 +4,7 @@ from typing import Optional from .module import Module -from .qualfied_name import QualifiedName +from .qualified_name import QualifiedName @dataclass(frozen=True) @@ -21,7 +21,7 @@ class ReferenceImport: class Reference: qualified_name_excluding_import: QualifiedName """ - the qualfied name of the reference "inside" the import. + the qualified name of the reference "inside" the import. example: import typing diff --git a/generators/python/src/fern_python/codegen/pyproject_toml.py b/generators/python/src/fern_python/codegen/pyproject_toml.py index 072f46823a1..0d29906fde7 100644 --- a/generators/python/src/fern_python/codegen/pyproject_toml.py +++ b/generators/python/src/fern_python/codegen/pyproject_toml.py @@ -199,12 +199,12 @@ class DependenciesBlock(Block): def deps_to_string(self, dependencies: Set[Dependency]) -> str: deps = "" for dep in sorted(dependencies, key=lambda dep: dep.name): - compatiblity = dep.compatibility + compatibility = dep.compatibility is_optional = dep.optional version = dep.version extras = dep.extras name = dep.name.replace(".", "-") - if compatiblity == DependencyCompatibility.GREATER_THAN_OR_EQUAL: + if compatibility == DependencyCompatibility.GREATER_THAN_OR_EQUAL: version = f">={dep.version}" if is_optional or dep.extras is not None: diff --git a/generators/python/src/fern_python/codegen/reference_resolver_impl.py b/generators/python/src/fern_python/codegen/reference_resolver_impl.py index c7be215ffb7..c54a484df4e 100644 --- a/generators/python/src/fern_python/codegen/reference_resolver_impl.py +++ b/generators/python/src/fern_python/codegen/reference_resolver_impl.py @@ -11,7 +11,7 @@ @dataclasses.dataclass class ResolvedImport: import_: Optional[AST.ReferenceImport] - prefix_for_qualfied_names: AST.QualifiedName + prefix_for_qualified_names: AST.QualifiedName class ReferenceResolverImpl(ReferenceResolver): @@ -47,13 +47,13 @@ def resolve_references(self) -> None: continue import_: Optional[AST.ReferenceImport] = original_reference.import_ - prefix_for_qualfied_names: AST.QualifiedName = () + prefix_for_qualified_names: AST.QualifiedName = () if original_reference.import_.module.path == self._module_path_of_source_file: self._does_file_self_import = True if original_reference.import_.named_import is not None: import_ = None - prefix_for_qualfied_names = (original_reference.import_.named_import,) + prefix_for_qualified_names = (original_reference.import_.named_import,) else: raise RuntimeError( f"Intra-file reference in {self._module_path_of_source_file} is not using a named import: " @@ -73,7 +73,7 @@ def resolve_references(self) -> None: self._original_import_to_resolved_import[original_reference.import_] = ResolvedImport( import_=import_, - prefix_for_qualfied_names=prefix_for_qualfied_names, + prefix_for_qualified_names=prefix_for_qualified_names, ) def resolve_reference(self, reference: AST.Reference) -> str: @@ -84,7 +84,7 @@ def resolve_reference(self, reference: AST.Reference) -> str: self._original_import_to_resolved_import[reference.import_] if reference.import_ is not None else None ) resolved_qualified_name_excluding_import = ( - resolved_import.prefix_for_qualfied_names + reference.qualified_name_excluding_import + resolved_import.prefix_for_qualified_names + reference.qualified_name_excluding_import if resolved_import is not None else reference.qualified_name_excluding_import ) diff --git a/generators/python/src/fern_python/codegen/source_file.py b/generators/python/src/fern_python/codegen/source_file.py index 256f35797fa..b730d87f30b 100644 --- a/generators/python/src/fern_python/codegen/source_file.py +++ b/generators/python/src/fern_python/codegen/source_file.py @@ -210,7 +210,7 @@ def _prepare_for_writing(self, include_imports: Optional[bool] = True) -> NodeWr tc_ref = AST.TypeHint.type_checking_reference() self._reference_resolver.register_reference(tc_ref) - # register refrence for resolving later + # register reference for resolving later self._reference_resolver.register_reference(reference) # track dependency if this references relies on an external dep diff --git a/generators/python/src/fern_python/codegen/writer_impl.py b/generators/python/src/fern_python/codegen/writer_impl.py index 198c83e4f96..b711be46947 100644 --- a/generators/python/src/fern_python/codegen/writer_impl.py +++ b/generators/python/src/fern_python/codegen/writer_impl.py @@ -23,7 +23,7 @@ def __init__( should_sort_imports: Optional[bool] = None, ): self._indent = 0 - self._whitelable = whitelabel + self._whitelabel = whitelabel self._has_written_anything = False self._last_character_is_newline = False self._content = "" @@ -113,7 +113,7 @@ def to_str(self, should_format_override: Optional[bool] = None) -> str: pass if self._should_include_header: - if self._whitelable: + if self._whitelabel: content = "# This file was auto-generated from our API Definition.\n\n" + content else: content = "# This file was auto-generated by Fern from our API Definition.\n\n" + content diff --git a/generators/python/src/fern_python/generator_cli/readme_snippet_builder.py b/generators/python/src/fern_python/generator_cli/readme_snippet_builder.py index 66e7216fbac..6282cb05269 100644 --- a/generators/python/src/fern_python/generator_cli/readme_snippet_builder.py +++ b/generators/python/src/fern_python/generator_cli/readme_snippet_builder.py @@ -108,7 +108,7 @@ def _expression_to_snippet_str( ) -> str: snippet = self._source_file_factory.create_snippet() snippet.add_expression(expr) - # For some reason we're appending newlines to snippets, so we need to strip them for tempaltes + # For some reason we're appending newlines to snippets, so we need to strip them for templates return snippet.to_str() def _build_timeout_snippets(self) -> List[str]: diff --git a/generators/python/src/fern_python/generator_cli/reference_config_builder.py b/generators/python/src/fern_python/generator_cli/reference_config_builder.py index 7b3babdcc31..71b0bee3fe3 100644 --- a/generators/python/src/fern_python/generator_cli/reference_config_builder.py +++ b/generators/python/src/fern_python/generator_cli/reference_config_builder.py @@ -65,7 +65,7 @@ def _expression_to_snippet_str( ) -> str: snippet = self.context.source_file_factory.create_snippet() snippet.add_expression(expr) - # For some reason we're appending newlines to snippets, so we need to strip them for tempaltes + # For some reason we're appending newlines to snippets, so we need to strip them for templates return snippet.to_str(include_imports=False).strip() def _convert_type_hint_to_name(self, type_hint: AST.TypeHint) -> str: diff --git a/generators/python/src/fern_python/generators/context/type_reference_to_type_hint_converter.py b/generators/python/src/fern_python/generators/context/type_reference_to_type_hint_converter.py index cec70e571a1..f16fbdcdb0d 100644 --- a/generators/python/src/fern_python/generators/context/type_reference_to_type_hint_converter.py +++ b/generators/python/src/fern_python/generators/context/type_reference_to_type_hint_converter.py @@ -50,7 +50,7 @@ def _get_set_type_hint_for_named( in_endpoint: Optional[bool], as_if_type_checking_import: bool = False, ) -> AST.TypeHint: - is_primative = self._context.get_declaration_for_type_id(name.type_id).shape.visit( + is_primitive = self._context.get_declaration_for_type_id(name.type_id).shape.visit( alias=lambda alias_td: alias_td.resolved_type.visit( container=lambda c: False, named=lambda n: False, primitive=lambda p: True, unknown=lambda: False ), @@ -65,7 +65,7 @@ def _get_set_type_hint_for_named( as_request=in_endpoint if in_endpoint is not None else False, as_if_type_checking_import=as_if_type_checking_import, ) - if is_primative: + if is_primitive: return AST.TypeHint.set(inner_hint) if in_endpoint: return AST.TypeHint.sequence(inner_hint) diff --git a/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/__init__.py b/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/__init__.py index c6261696a5c..06b285de09f 100644 --- a/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/__init__.py +++ b/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/__init__.py @@ -1,6 +1,6 @@ from .auth_endpoint_parameter import AuthEndpointParameter from .endpoint_parameter import EndpointParameter -from .header_endpoint_paramter import HeaderEndpointParameter +from .header_endpoint_parameter import HeaderEndpointParameter from .path_endpoint_parameter import PathEndpointParameter from .query_endpoint_parameter import QueryEndpointParameter from .request import ( diff --git a/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/header_endpoint_paramter.py b/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/header_endpoint_parameter.py similarity index 100% rename from generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/header_endpoint_paramter.py rename to generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/header_endpoint_parameter.py diff --git a/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/query_endpoint_parameter.py b/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/query_endpoint_parameter.py index 4233141be1a..e5f7f95f7cf 100644 --- a/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/query_endpoint_parameter.py +++ b/generators/python/src/fern_python/generators/fastapi/service_generator/endpoint_parameters/query_endpoint_parameter.py @@ -39,10 +39,10 @@ def get_default(self) -> AST.Expression: def get_list_wrapped_type_hint(self) -> AST.TypeHint: query_param_type = self._query_parameter.value_type.get_as_union() if query_param_type.type == "container": - contaner_type = query_param_type.container.get_as_union() - if contaner_type.type == "optional": + container_type = query_param_type.container.get_as_union() + if container_type.type == "optional": return AST.TypeHint.optional( - AST.TypeHint.list(convert_to_singular_type(self._context, contaner_type.optional)) + AST.TypeHint.list(convert_to_singular_type(self._context, container_type.optional)) ) return AST.TypeHint.list(convert_to_singular_type(self._context, self._query_parameter.value_type)) diff --git a/generators/python/src/fern_python/generators/pydantic_model/fern_aware_pydantic_model.py b/generators/python/src/fern_python/generators/pydantic_model/fern_aware_pydantic_model.py index e38789e0908..acc4a3b6b14 100644 --- a/generators/python/src/fern_python/generators/pydantic_model/fern_aware_pydantic_model.py +++ b/generators/python/src/fern_python/generators/pydantic_model/fern_aware_pydantic_model.py @@ -164,7 +164,7 @@ def _add_update_forward_ref_for_transitive_circular_dependencies(self, type_id: dependency, as_request=False, must_import_after_current_declaration=lambda _: False ) # We already know we should do this import at the bottom since the update_forward_refs call will be at the bottom - # We add a ghost reference here so that we're not string referncing this class reference, e.g. + # We add a ghost reference here so that we're not string referencing this class reference, e.g. # 1. create the class reference as if it's a normal import (non-string reference) with must_import_after_current_declaration=lambda _: False # 2. add the ghost reference to the pydantic model to move the import to the bottom of the file self.add_ghost_reference(dependency) diff --git a/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/discriminated_union/simple_discriminated_union_generator.py b/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/discriminated_union/simple_discriminated_union_generator.py index 21687c9ffba..6b995922c8f 100644 --- a/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/discriminated_union/simple_discriminated_union_generator.py +++ b/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/discriminated_union/simple_discriminated_union_generator.py @@ -449,7 +449,7 @@ def _get_union_class_reference( ) -# TODO: For V1 naming, we should take into account if the new name introduces a conflcit with an existing class name +# TODO: For V1 naming, we should take into account if the new name introduces a conflict with an existing class name def get_single_union_type_class_name( name: ir_types.DeclaredTypeName, wire_discriminant_value: ir_types.NameAndWireValue, diff --git a/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/enum_generator.py b/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/enum_generator.py index 1e3b68256bc..f40f3be447c 100644 --- a/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/enum_generator.py +++ b/generators/python/src/fern_python/generators/pydantic_model/type_declaration_handler/enum_generator.py @@ -15,7 +15,7 @@ from .get_visit_method import VisitableItem, VisitorArgument, get_visit_method -# Note enums are the same for both pydantic models and typeddicts os the generator is not multi-plexed +# Note enums are the same for both pydantic models and typeddicts os the generator is not multiplexed class EnumGenerator(AbstractTypeGenerator): UNKNOWN_MEMBER_NAME = "_UNKNOWN" diff --git a/generators/python/src/fern_python/generators/pydantic_model/typeddict.py b/generators/python/src/fern_python/generators/pydantic_model/typeddict.py index b05451e940a..898d78fd71e 100644 --- a/generators/python/src/fern_python/generators/pydantic_model/typeddict.py +++ b/generators/python/src/fern_python/generators/pydantic_model/typeddict.py @@ -106,7 +106,7 @@ def _type_id_for_forward_ref(self) -> Optional[ir_types.TypeId]: return type_id_to_reference - def _field_type_is_circularly_referened(self, field_types: List[ir_types.TypeId]) -> bool: + def _field_type_is_circularly_referenced(self, field_types: List[ir_types.TypeId]) -> bool: type_id_to_reference = self._type_id_for_forward_ref() return ( @@ -144,7 +144,7 @@ def add_field( ) -> None: maybe_type_id = self._context.maybe_get_type_ids_for_type_reference(type_reference) as_if_type_checking = False - if maybe_type_id is not None and self._field_type_is_circularly_referened(maybe_type_id): + if maybe_type_id is not None and self._field_type_is_circularly_referenced(maybe_type_id): # Mark the class reference as if_typechecking since we have a circular ref that we'll # need to string reference and import through `if TYPE_CHECKING`. as_if_type_checking = True diff --git a/generators/python/src/fern_python/generators/sdk/client_generator/root_client_generator.py b/generators/python/src/fern_python/generators/sdk/client_generator/root_client_generator.py index 27d8a15e688..55380fda2b1 100644 --- a/generators/python/src/fern_python/generators/sdk/client_generator/root_client_generator.py +++ b/generators/python/src/fern_python/generators/sdk/client_generator/root_client_generator.py @@ -361,7 +361,7 @@ def write_default_environment(writer: AST.NodeWriter) -> None: docs=environment_docs, ), ) - # If mutli url environment present, client should provide only environment argument + # If multi url environment present, client should provide only environment argument elif environments_config.environments.get_as_union().type == "multipleBaseUrls": default_environment = ( AST.Expression( @@ -425,7 +425,7 @@ def write_default_environment(writer: AST.NodeWriter) -> None: else None, validation_check=AST.Expression( AST.CodeWriter( - self._get_paramter_validation_writer( + self._get_parameter_validation_writer( param_name=param.constructor_parameter_name, environment_variable=param.environment_variable, ) @@ -461,7 +461,7 @@ def write_default_environment(writer: AST.NodeWriter) -> None: else None, validation_check=AST.Expression( AST.CodeWriter( - self._get_paramter_validation_writer( + self._get_parameter_validation_writer( param_name="client_id", environment_variable=oauth.client_id_env_var, ) @@ -494,7 +494,7 @@ def write_default_environment(writer: AST.NodeWriter) -> None: else None, validation_check=AST.Expression( AST.CodeWriter( - self._get_paramter_validation_writer( + self._get_parameter_validation_writer( param_name="client_secret", environment_variable=oauth.client_secret_env_var, ) @@ -560,7 +560,7 @@ def write_default_environment(writer: AST.NodeWriter) -> None: def _environment_is_enum(self) -> bool: return self._context.ir.environments is not None - def _get_paramter_validation_writer(self, *, param_name: str, environment_variable: str) -> CodeWriterFunction: + def _get_parameter_validation_writer(self, *, param_name: str, environment_variable: str) -> CodeWriterFunction: def _write_parameter_validation(writer: AST.NodeWriter) -> None: writer.write_line(f"if {param_name} is None:") writer.indent() diff --git a/generators/python/src/fern_python/generators/sdk/custom_config.py b/generators/python/src/fern_python/generators/sdk/custom_config.py index aa80203a83a..7150c4f0fc4 100644 --- a/generators/python/src/fern_python/generators/sdk/custom_config.py +++ b/generators/python/src/fern_python/generators/sdk/custom_config.py @@ -29,18 +29,18 @@ class Config: extra = pydantic.Extra.forbid -class BaseDependencyCusomConfig(pydantic.BaseModel): +class BaseDependencyCustomConfig(pydantic.BaseModel): version: str extras: Optional[List[str]] = None -class DependencyCusomConfig(BaseDependencyCusomConfig): +class DependencyCustomConfig(BaseDependencyCustomConfig): optional: bool class SDKCustomConfig(pydantic.BaseModel): - extra_dependencies: Dict[str, Union[str, DependencyCusomConfig]] = {} - extra_dev_dependencies: Dict[str, Union[str, BaseDependencyCusomConfig]] = {} + extra_dependencies: Dict[str, Union[str, DependencyCustomConfig]] = {} + extra_dev_dependencies: Dict[str, Union[str, BaseDependencyCustomConfig]] = {} extras: Dict[str, List[str]] = {} skip_formatting: bool = False client: ClientConfiguration = ClientConfiguration() @@ -52,7 +52,7 @@ class SDKCustomConfig(pydantic.BaseModel): pydantic_config: SdkPydanticModelCustomConfig = SdkPydanticModelCustomConfig() additional_init_exports: Optional[List[ModuleExport]] = None # Feature flag that improves imports in the - # Python SDK by removing nested `resources` directoy + # Python SDK by removing nested `resources` directory improved_imports: bool = True follow_redirects_by_default: Optional[bool] = True diff --git a/generators/python/src/fern_python/generators/sdk/sdk_generator.py b/generators/python/src/fern_python/generators/sdk/sdk_generator.py index 3a887ca7030..5ec57232e2c 100644 --- a/generators/python/src/fern_python/generators/sdk/sdk_generator.py +++ b/generators/python/src/fern_python/generators/sdk/sdk_generator.py @@ -37,8 +37,8 @@ from .client_generator.oauth_token_provider_generator import OAuthTokenProviderGenerator from .client_generator.root_client_generator import RootClientGenerator from .custom_config import ( - BaseDependencyCusomConfig, - DependencyCusomConfig, + BaseDependencyCustomConfig, + DependencyCustomConfig, SDKCustomConfig, ) from .environment_generators import ( @@ -103,7 +103,7 @@ def run( for dep, value in custom_config.extra_dependencies.items(): if type(value) is str: project.add_dependency(dependency=AST.Dependency(name=dep, version=value)) - elif isinstance(value, DependencyCusomConfig): + elif isinstance(value, DependencyCustomConfig): project.add_dependency( dependency=AST.Dependency(name=dep, version=value.version, optional=value.optional) ) @@ -113,7 +113,7 @@ def run( for dep, bas_dep_value in custom_config.extra_dev_dependencies.items(): if type(bas_dep_value) is str: project.add_dev_dependency(dependency=AST.Dependency(name=dep, version=bas_dep_value)) - elif isinstance(bas_dep_value, BaseDependencyCusomConfig): + elif isinstance(bas_dep_value, BaseDependencyCustomConfig): project.add_dev_dependency( dependency=AST.Dependency( name=dep, diff --git a/generators/python/src/fern_python/snippet/snippet_template_factory.py b/generators/python/src/fern_python/snippet/snippet_template_factory.py index 8b0ef3a958d..4828a6620b6 100644 --- a/generators/python/src/fern_python/snippet/snippet_template_factory.py +++ b/generators/python/src/fern_python/snippet/snippet_template_factory.py @@ -101,7 +101,7 @@ def _expression_to_snippet_str( ) -> str: snippet = self._context.source_file_factory.create_snippet() snippet.add_expression(expr) - # For some reason we're appending newlines to snippets, so we need to strip them for tempaltes + # For some reason we're appending newlines to snippets, so we need to strip them for templates return snippet.to_str(should_format_override=False).strip() def _expression_to_snippet_str_and_imports( @@ -113,7 +113,7 @@ def _expression_to_snippet_str_and_imports( snippet_full = snippet.to_str(should_format_override=False) snippet_without_imports = snippet.to_str(should_format_override=False, include_imports=False) - # For some reason we're appending newlines to snippets, so we need to strip them for tempaltes + # For some reason we're appending newlines to snippets, so we need to strip them for templates return snippet_full.replace(snippet_without_imports, "").strip(), snippet_without_imports.strip() def _generate_client(self, is_async: Optional[bool] = False) -> Template: diff --git a/generators/python/src/fern_python/snippet/snippet_test_factory.py b/generators/python/src/fern_python/snippet/snippet_test_factory.py index 6de66db6c96..8fa2aa12679 100644 --- a/generators/python/src/fern_python/snippet/snippet_test_factory.py +++ b/generators/python/src/fern_python/snippet/snippet_test_factory.py @@ -92,7 +92,7 @@ def envvar_writer(writer: AST.NodeWriter) -> None: return AST.Expression(AST.CodeWriter(envvar_writer)) - def _enviroment(self, generated_environment: MultipleBaseUrlsEnvironmentGenerator) -> AST.ClassInstantiation: + def _environment(self, generated_environment: MultipleBaseUrlsEnvironmentGenerator) -> AST.ClassInstantiation: args = [AST.Expression(f'"{self.TEST_URL_ENVVAR}"'), AST.Expression('"base_url"')] os_get = AST.Expression( AST.FunctionInvocation( @@ -149,7 +149,7 @@ def _instantiate_client(self, client: RootClient) -> AST.ClassInstantiation: _kwargs.append( ( "environment", - AST.Expression(self._enviroment(self._generated_environment)), + AST.Expression(self._environment(self._generated_environment)), ) ) diff --git a/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py b/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py index 5f7b2ec69ed..8297500f503 100644 --- a/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py +++ b/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/tests/utils/typeddict_models/types/core/pydantic_utilities.py b/generators/python/tests/utils/typeddict_models/types/core/pydantic_utilities.py index 5f7b2ec69ed..8297500f503 100644 --- a/generators/python/tests/utils/typeddict_models/types/core/pydantic_utilities.py +++ b/generators/python/tests/utils/typeddict_models/types/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/tests/utils/unaliased_models/types/core/pydantic_utilities.py b/generators/python/tests/utils/unaliased_models/types/core/pydantic_utilities.py index 93e7c2ef4e1..dc3bdbada4d 100644 --- a/generators/python/tests/utils/unaliased_models/types/core/pydantic_utilities.py +++ b/generators/python/tests/utils/unaliased_models/types/core/pydantic_utilities.py @@ -81,7 +81,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -143,7 +143,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/python/tests/utils/union_utils/types/core/pydantic_utilities.py b/generators/python/tests/utils/union_utils/types/core/pydantic_utilities.py index 5f7b2ec69ed..8297500f503 100644 --- a/generators/python/tests/utils/union_utils/types/core/pydantic_utilities.py +++ b/generators/python/tests/utils/union_utils/types/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/generators/ruby/codegen/src/ast/classes/ClassReference.ts b/generators/ruby/codegen/src/ast/classes/ClassReference.ts index 20b614544d8..1a263d25b97 100644 --- a/generators/ruby/codegen/src/ast/classes/ClassReference.ts +++ b/generators/ruby/codegen/src/ast/classes/ClassReference.ts @@ -123,7 +123,7 @@ export class ClassReference extends AstNode { } } -// Basic or primitve class references for which we don't do much +// Basic or primitive class references for which we don't do much export const OpenStructClassReference = new ClassReference({ name: RubyClass.OPENSTRUCT, import_: new Import({ from: "ostruct", isExternal: true }) diff --git a/generators/ruby/codegen/src/ast/functions/FunctionInvocation.ts b/generators/ruby/codegen/src/ast/functions/FunctionInvocation.ts index 1ac0c3ed98b..6c2b5ae8e83 100644 --- a/generators/ruby/codegen/src/ast/functions/FunctionInvocation.ts +++ b/generators/ruby/codegen/src/ast/functions/FunctionInvocation.ts @@ -69,7 +69,7 @@ export class FunctionInvocation extends AstNode { } } - private writeArgmuments(startingTabSpaces: number) { + private writeArguments(startingTabSpaces: number) { if (this.arguments_.length > 2) { this.addText({ stringContent: "(", appendToLastString: true }); this.arguments_.forEach((arg, idx) => @@ -108,7 +108,7 @@ export class FunctionInvocation extends AstNode { startingTabSpaces, appendToLastString: true }); - this.writeArgmuments(startingTabSpaces); + this.writeArguments(startingTabSpaces); this.writeBlock(startingTabSpaces); } diff --git a/generators/ruby/codegen/src/utils/RubyUtilities.ts b/generators/ruby/codegen/src/utils/RubyUtilities.ts index 8cfbb727558..9a2de797334 100644 --- a/generators/ruby/codegen/src/utils/RubyUtilities.ts +++ b/generators/ruby/codegen/src/utils/RubyUtilities.ts @@ -46,8 +46,8 @@ task default: %i[test rubocop] Rake::TestTask.new do |t| t.pattern = "./test/**/test_*.rb" end - -RuboCop::RakeTask.new + +RuboCop::RakeTask.new `; return new GeneratedFile("Rakefile", RelativeFilePath.of("."), content); } @@ -115,7 +115,7 @@ export function generateGemspec( }); } -// To ensure configuration may be managed independently from dependenies, we introduce a new config file that +// To ensure configuration may be managed independently from dependencies, we introduce a new config file that // users are encouraged to fernignore and update, while allowing the traditional gemspec to remain generated export function generateGemConfig(clientName: string, repoUrl?: string): GeneratedRubyFile { const gemspec = new Module_({ @@ -187,7 +187,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: \${{ secrets.${apiKeyEnvVar} }} @@ -202,11 +202,11 @@ jobs: export function generateRubocopConfig(): GeneratedFile { const content = `AllCops: TargetRubyVersion: ${MINIMUM_RUBY_VERSION} - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/generators/ruby/model/src/TypesGenerator.ts b/generators/ruby/model/src/TypesGenerator.ts index ff4ad966e94..388a3f8264c 100644 --- a/generators/ruby/model/src/TypesGenerator.ts +++ b/generators/ruby/model/src/TypesGenerator.ts @@ -79,7 +79,7 @@ export class TypesGenerator { } // We pull all inherited properties onto the object because Ruby - // does not allow for multiple inheritence of classes, and does not + // does not allow for multiple inheritance of classes, and does not // have a concept of interfaces. We could leverage Modules, however inheriting // properties from Modules appears non-standard (functions is the more common usecase) private getFlattenedProperties(typeId: TypeId): ObjectProperty[] { @@ -271,7 +271,7 @@ export class TypesGenerator { fullPath: this.locationGenerator.getLocationForTypeDeclaration(typeDeclaration.name) }); } - private generateUnkownFile(shape: Type): GeneratedRubyFile | undefined { + private generateUnknownFile(shape: Type): GeneratedRubyFile | undefined { throw new Error("Unknown type declaration shape: " + shape.type); } @@ -286,7 +286,7 @@ export class TypesGenerator { union: (utd: UnionTypeDeclaration) => this.generateUnionFile(typeId, utd, typeDeclaration), undiscriminatedUnion: (uutd: UndiscriminatedUnionTypeDeclaration) => this.generateUndiscriminatedUnionFile(typeId, uutd, typeDeclaration), - _other: () => this.generateUnkownFile(typeDeclaration.shape) + _other: () => this.generateUnknownFile(typeDeclaration.shape) }); if (generatedFile != null) { diff --git a/generators/ruby/sdk/src/ClientsGenerator.ts b/generators/ruby/sdk/src/ClientsGenerator.ts index 3e5b225f2c7..3ef8406deb5 100644 --- a/generators/ruby/sdk/src/ClientsGenerator.ts +++ b/generators/ruby/sdk/src/ClientsGenerator.ts @@ -445,9 +445,9 @@ export class ClientsGenerator { if (this.shouldGenerateOauth && this.oauthScheme != null) { const accessTokenClass = new AccessToken(this.clientName, this.oauthScheme.configuration); - let maybeRefereshTokenDetails; + let maybeRefreshTokenDetails; if (this.oauthScheme.configuration.refreshEndpoint) { - maybeRefereshTokenDetails = getOauthRefreshTokenFunctionMetadata({ + maybeRefreshTokenDetails = getOauthRefreshTokenFunctionMetadata({ refreshEndpoint: this.oauthScheme.configuration.refreshEndpoint, artifactRegistry: this.artifactRegistry }); @@ -457,7 +457,7 @@ export class ClientsGenerator { tokenEndpoint: this.oauthScheme.configuration.tokenEndpoint, artifactRegistry: this.artifactRegistry }), - refreshTokenFunction: maybeRefereshTokenDetails + refreshTokenFunction: maybeRefreshTokenDetails }; oauthTokenProvider = new OauthTokenProvider({ diff --git a/generators/ruby/sdk/src/utils/EndpointGenerator.ts b/generators/ruby/sdk/src/utils/EndpointGenerator.ts index 2db89213fd3..79aab0f8287 100644 --- a/generators/ruby/sdk/src/utils/EndpointGenerator.ts +++ b/generators/ruby/sdk/src/utils/EndpointGenerator.ts @@ -244,13 +244,13 @@ export class EndpointGenerator { example: "my_file.txt" }), // TODO: add examples for fileUpload parameters - bodyProperty: (irbp: InlinedRequestBodyProperty) => + bodyProperty: (prop: InlinedRequestBodyProperty) => new Property({ - name: irbp.name.name.snakeCase.safeName, - isOptional: isTypeOptional(irbp.valueType), - wireValue: irbp.name.wireValue, - type: crf.fromTypeReference(irbp.valueType), - documentation: irbp.docs + name: prop.name.name.snakeCase.safeName, + isOptional: isTypeOptional(prop.valueType), + wireValue: prop.name.wireValue, + type: crf.fromTypeReference(prop.valueType), + documentation: prop.docs }), _other: () => { throw new Error("Unknown file upload property type."); diff --git a/generators/ruby/sdk/src/utils/IdempotencyRequestOptionsClass.ts b/generators/ruby/sdk/src/utils/IdempotencyRequestOptionsClass.ts index 4ca4ebb1acc..84624b1c8dd 100644 --- a/generators/ruby/sdk/src/utils/IdempotencyRequestOptionsClass.ts +++ b/generators/ruby/sdk/src/utils/IdempotencyRequestOptionsClass.ts @@ -19,7 +19,7 @@ export declare namespace IdempotencyRequestOptions { } } -// TODO: Implrement this, also figure out the best way to handle the headerGenerator concept +// TODO: Implement this, also figure out the best way to handle the headerGenerator concept export class IdempotencyRequestOptions extends RequestOptions { public idempotencyHeaderProperties: Property[]; diff --git a/generators/ruby/sdk/src/utils/oauth/OauthTokenProvider.ts b/generators/ruby/sdk/src/utils/oauth/OauthTokenProvider.ts index f19536735df..488f3a7160c 100644 --- a/generators/ruby/sdk/src/utils/oauth/OauthTokenProvider.ts +++ b/generators/ruby/sdk/src/utils/oauth/OauthTokenProvider.ts @@ -113,7 +113,7 @@ export class OauthTokenProvider extends Class_ { isAssignment: true }) ); - if (OauthTokenProvider.isRefreshClientSeperate(oauthConfiguration)) { + if (OauthTokenProvider.isRefreshClientSeparate(oauthConfiguration)) { body.push( new Expression({ leftSide: "@refresh_client", @@ -165,7 +165,7 @@ export class OauthTokenProvider extends Class_ { } } - private static isRefreshClientSeperate(oauthConfiguration: OauthTokenProvider.ClientCredentialsInit): boolean { + private static isRefreshClientSeparate(oauthConfiguration: OauthTokenProvider.ClientCredentialsInit): boolean { return ( oauthConfiguration.refreshTokenFunction != null && oauthConfiguration.refreshTokenFunction.tokenFunctionClientClassReference !== @@ -193,7 +193,7 @@ export class OauthTokenProvider extends Class_ { type: StringClassReference }) ]; - if (OauthTokenProvider.isRefreshClientSeperate(oauthConfiguration)) { + if (OauthTokenProvider.isRefreshClientSeparate(oauthConfiguration)) { properties.push( new Property({ name: "refresh_client", @@ -384,7 +384,7 @@ export class OauthTokenProvider extends Class_ { new Expression({ leftSide: responseVariableName, rightSide: new FunctionInvocation({ - onObject: OauthTokenProvider.isRefreshClientSeperate(oauthConfiguration) + onObject: OauthTokenProvider.isRefreshClientSeparate(oauthConfiguration) ? "@refresh_client" : "@auth_client", baseFunction: oauthConfiguration.refreshTokenFunction.tokenFunction, @@ -392,7 +392,7 @@ export class OauthTokenProvider extends Class_ { ...clientCredentialArgs, new Argument({ isNamed: true, - name: "referesh_token", + name: "refresh_token", value: "@token.refresh_token" }) ], diff --git a/generators/swift/codegen/src/ast/Primative.ts b/generators/swift/codegen/src/ast/Primitive.ts similarity index 68% rename from generators/swift/codegen/src/ast/Primative.ts rename to generators/swift/codegen/src/ast/Primitive.ts index bdfc9a274b3..0845196e801 100644 --- a/generators/swift/codegen/src/ast/Primative.ts +++ b/generators/swift/codegen/src/ast/Primitive.ts @@ -4,7 +4,7 @@ import { Type } from "./Type"; /* -Builds Swift Primiatives +Builds Swift Primitives ======================== Int = "integer" @@ -16,25 +16,25 @@ NSDecimalNumber = "bigInteger" */ -export type PrimativeKey = "integer" | "double" | "string" | "boolean" | "long" | "bigInteger"; +export type PrimitiveKey = "integer" | "double" | "string" | "boolean" | "long" | "bigInteger"; -export declare namespace Primative { +export declare namespace Primitive { interface Args { - key?: PrimativeKey; + key?: PrimitiveKey; } } -export class Primative extends Type { - public readonly key?: PrimativeKey; +export class Primitive extends Type { + public readonly key?: PrimitiveKey; - constructor(args: Primative.Args) { + constructor(args: Primitive.Args) { super({ - name: Primative.getNameForKey(args.key) + name: Primitive.getNameForKey(args.key) }); this.key = args.key; } - public static getNameForKey(key?: PrimativeKey): string { + public static getNameForKey(key?: PrimitiveKey): string { switch (key) { case "integer": return "Int"; diff --git a/generators/swift/codegen/src/ast/__test__/Swift.test.ts b/generators/swift/codegen/src/ast/__test__/Swift.test.ts index 4eceb5d4563..b07e84b13a1 100644 --- a/generators/swift/codegen/src/ast/__test__/Swift.test.ts +++ b/generators/swift/codegen/src/ast/__test__/Swift.test.ts @@ -81,10 +81,10 @@ describe("Swift Language", () => { expect(output.toString()).toMatchSnapshot(); }); - it("makes primatives", () => { + it("makes primitives", () => { const output = Swift.makeField({ name: "count", - valueType: Swift.makePrimative({ + valueType: Swift.makePrimitive({ key: "integer" }) }); @@ -105,7 +105,7 @@ describe("Swift Language", () => { Swift.makeField({ name: "description", variableType: VariableType.Let, - valueType: Swift.makePrimative({ + valueType: Swift.makePrimitive({ key: "string" }) }) diff --git a/generators/swift/codegen/src/ast/__test__/__snapshots__/Swift.test.ts.snap b/generators/swift/codegen/src/ast/__test__/__snapshots__/Swift.test.ts.snap index 36711459052..f2379009034 100644 --- a/generators/swift/codegen/src/ast/__test__/__snapshots__/Swift.test.ts.snap +++ b/generators/swift/codegen/src/ast/__test__/__snapshots__/Swift.test.ts.snap @@ -28,7 +28,7 @@ exports[`Swift Language > makes function 1`] = ` exports[`Swift Language > makes import 1`] = `"import ExamplePackage"`; -exports[`Swift Language > makes primatives 1`] = `" let count: Int"`; +exports[`Swift Language > makes primitives 1`] = `" let count: Int"`; exports[`Swift Language > makes struct 1`] = `"public struct TopGun: Movie { let description: String}"`; diff --git a/generators/swift/codegen/src/index.ts b/generators/swift/codegen/src/index.ts index 6e8db6e8430..3a17d08b085 100644 --- a/generators/swift/codegen/src/index.ts +++ b/generators/swift/codegen/src/index.ts @@ -7,7 +7,7 @@ import { FileHeader } from "./ast/FileHeader"; import { Func } from "./ast/Func"; import { Import } from "./ast/Import"; import { Param } from "./ast/Param"; -import { Primative } from "./ast/Primative"; +import { Primitive } from "./ast/Primitive"; import { Struct } from "./ast/Struct"; import { Type } from "./ast/Type"; import { TypeAlias } from "./ast/TypeAlias"; @@ -22,8 +22,8 @@ export { Func } from "./ast/Func"; export { FunctionModifier } from "./ast/FunctionModifier"; export { Import } from "./ast/Import"; export { Param } from "./ast/Param"; -export { Primative } from "./ast/Primative"; -export type { PrimativeKey } from "./ast/Primative"; +export { Primitive } from "./ast/Primitive"; +export type { PrimitiveKey } from "./ast/Primitive"; export { Struct } from "./ast/Struct"; export { Type } from "./ast/Type"; export { VariableType } from "./ast/VariableType"; @@ -64,8 +64,8 @@ export default class Swift { return new Func(args); } - public static makePrimative(args: Primative.Args): Primative { - return new Primative(args); + public static makePrimitive(args: Primitive.Args): Primitive { + return new Primitive(args); } public static makeStruct(args: Struct.Args): Struct { diff --git a/generators/typescript-v2/ast/src/ast/TypeLiteral.ts b/generators/typescript-v2/ast/src/ast/TypeLiteral.ts index 8e05b082771..9d8f7786ddb 100644 --- a/generators/typescript-v2/ast/src/ast/TypeLiteral.ts +++ b/generators/typescript-v2/ast/src/ast/TypeLiteral.ts @@ -15,7 +15,7 @@ type InternalTypeLiteral = | Set_ | String_ | Tuple - | Unkonwn_ + | Unknown_ | Null_ | Nop; @@ -89,7 +89,7 @@ interface Tuple { values: TypeLiteral[]; } -interface Unkonwn_ { +interface Unknown_ { type: "unknown"; value: unknown; } diff --git a/generators/typescript-v2/dynamic-snippets/src/context/DynamicTypeLiteralMapper.ts b/generators/typescript-v2/dynamic-snippets/src/context/DynamicTypeLiteralMapper.ts index 732b508bcb9..1196a7198eb 100644 --- a/generators/typescript-v2/dynamic-snippets/src/context/DynamicTypeLiteralMapper.ts +++ b/generators/typescript-v2/dynamic-snippets/src/context/DynamicTypeLiteralMapper.ts @@ -201,7 +201,7 @@ export class DynamicTypeLiteralMapper { case "object": return this.convertObject({ object_: named, value }); case "undiscriminatedUnion": - return this.convertUndicriminatedUnion({ undicriminatedUnion: named, value }); + return this.convertUndiscriminatedUnion({ undiscriminatedUnion: named, value }); default: assertNever(named); } @@ -427,15 +427,15 @@ export class DynamicTypeLiteralMapper { return value; } - private convertUndicriminatedUnion({ - undicriminatedUnion, + private convertUndiscriminatedUnion({ + undiscriminatedUnion, value }: { - undicriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; + undiscriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; value: unknown; }): ts.TypeLiteral { const result = this.findMatchingUndiscriminatedUnionType({ - undicriminatedUnion, + undiscriminatedUnion, value }); if (result == null) { @@ -445,13 +445,13 @@ export class DynamicTypeLiteralMapper { } private findMatchingUndiscriminatedUnionType({ - undicriminatedUnion, + undiscriminatedUnion, value }: { - undicriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; + undiscriminatedUnion: FernIr.dynamic.UndiscriminatedUnionType; value: unknown; }): ts.TypeLiteral | undefined { - for (const typeReference of undicriminatedUnion.types) { + for (const typeReference of undiscriminatedUnion.types) { try { return this.convert({ typeReference, value }); } catch (e) { @@ -460,7 +460,7 @@ export class DynamicTypeLiteralMapper { } this.context.errors.add({ severity: Severity.Critical, - message: `None of the types in the undicriminated union matched the given "${typeof value}" value` + message: `None of the types in the undiscriminated union matched the given "${typeof value}" value` }); return undefined; } diff --git a/generators/typescript/README.md b/generators/typescript/README.md index 59c3d06ae39..d7fa39b6944 100644 --- a/generators/typescript/README.md +++ b/generators/typescript/README.md @@ -340,7 +340,7 @@ See [outputSourceFiles](#outputSourceFiles) under SDK Configuration **Default:** `false` -By default, the generated `register()` will require an implementatiion for every +By default, the generated `register()` will require an implementation for every service defined in your Fern Definition. If `optionalImplementations` is enabled, then `register()` won't require any diff --git a/generators/typescript/model/type-reference-converters/src/AbstractTypeReferenceConverter.ts b/generators/typescript/model/type-reference-converters/src/AbstractTypeReferenceConverter.ts index e15b9aa6be0..db97e0529ea 100644 --- a/generators/typescript/model/type-reference-converters/src/AbstractTypeReferenceConverter.ts +++ b/generators/typescript/model/type-reference-converters/src/AbstractTypeReferenceConverter.ts @@ -181,8 +181,8 @@ export abstract class AbstractTypeReferenceConverter { } protected map(mapType: MapType, params: ConvertTypeReferenceParams): T { - const resolvdKeyType = this.context.type.resolveTypeReference(mapType.keyType); - if (resolvdKeyType.type === "named" && resolvdKeyType.shape === ShapeType.Enum) { + const resolvedKeyType = this.context.type.resolveTypeReference(mapType.keyType); + if (resolvedKeyType.type === "named" && resolvedKeyType.shape === ShapeType.Enum) { return this.mapWithEnumKeys(mapType, params); } else { return this.mapWithNonEnumKeys(mapType, params); diff --git a/generators/typescript/model/union-schema-generator/src/AbstractRawSingleUnionType.ts b/generators/typescript/model/union-schema-generator/src/AbstractRawSingleUnionType.ts index ee20cd90c8c..be13aaf69b3 100644 --- a/generators/typescript/model/union-schema-generator/src/AbstractRawSingleUnionType.ts +++ b/generators/typescript/model/union-schema-generator/src/AbstractRawSingleUnionType.ts @@ -13,11 +13,11 @@ export declare namespace AbstractRawSingleUnionType { } export abstract class AbstractRawSingleUnionType implements RawSingleUnionType { - private disciminant: NameAndWireValue; + private discriminant: NameAndWireValue; private discriminantValueWithAllCasings: NameAndWireValue; constructor({ discriminant, discriminantValue }: AbstractRawSingleUnionType.Init) { - this.disciminant = discriminant; + this.discriminant = discriminant; this.discriminantValueWithAllCasings = discriminantValue; } @@ -31,7 +31,7 @@ export abstract class AbstractRawSingleUnionType implements RawSingleUn extends: this.getExtends(context).map(getTextOfTsNode), properties: [ { - name: `"${this.disciminant.wireValue}"`, + name: `"${this.discriminant.wireValue}"`, type: `"${this.discriminantValue}"` }, ...this.getNonDiscriminantPropertiesForInterface(context) diff --git a/generators/typescript/sdk/CHANGELOG.md b/generators/typescript/sdk/CHANGELOG.md index 2416038c159..c98bc781b33 100644 --- a/generators/typescript/sdk/CHANGELOG.md +++ b/generators/typescript/sdk/CHANGELOG.md @@ -330,7 +330,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.42.5] - 2024-11-23 -- Fix: Remove extraenous import in pagination snippets. +- Fix: Remove extraneous import in pagination snippets. ## [0.42.4] - 2024-11-21 @@ -792,7 +792,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.27.2] - 2024-07-08 -- Fix: The generated readme now moves the sections for `AbortController`, `Runtime Compatiblity` and +- Fix: The generated readme now moves the sections for `AbortController`, `Runtime Compatibility` and `Custom Fetcher` under the Advanced section in the generated README. ## [0.27.1] - 2024-07-08 @@ -824,7 +824,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.26.0-rc3] - 2024-06-30 -- Fix: The typesript generator now returns all `FormData` headers and Fetcher no longer stringifies stream.Readable type. +- Fix: The typescript generator now returns all `FormData` headers and Fetcher no longer stringifies stream.Readable type. ## [0.26.0-rc2] - 2024-06-27 @@ -868,12 +868,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.25.2] - 2024-06-20 -- Fix: The generator now removes `fs`, `path`, and `os` depdencencies from the browser +- Fix: The generator now removes `fs`, `path`, and `os` dependencies from the browser runtime. ## [0.25.1] - 2024-06-20 -- Fix: The generator now removes `fs`, `path`, and `os` depdencencies from the browser +- Fix: The generator now removes `fs`, `path`, and `os` dependencies from the browser runtime. ## [0.25.0] - 2024-06-19 @@ -923,7 +923,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.24.0-rc0] - 2024-06-18 - Feature: Dynamic client instantiation snippets are now generated. Note this only affects - enteprise users that are using Fern's Snippets API. + enterprise users that are using Fern's Snippets API. ## [0.23.3] - 2024-06-17 @@ -1531,7 +1531,7 @@ seedExamples.file.notification.service.getException(...) ## [0.11.2] - 2024-02-13 -- Fix: ensure SDK generator does not drop additional parameters from requests that perform file upload. Previously, if an endpoint had `file` inputs without additional `body` parameters, query parameters were eroniously ignored. +- Fix: ensure SDK generator does not drop additional parameters from requests that perform file upload. Previously, if an endpoint had `file` inputs without additional `body` parameters, query parameters were erroneously ignored. ## [0.11.1] - 2024-02-13 @@ -1553,4 +1553,4 @@ seedExamples.file.notification.service.getException(...) ## [0.9.7] - 2024-02-11 -- Chore: Intialize this changelog +- Chore: Initialize this changelog diff --git a/generators/typescript/sdk/cli/src/SdkGeneratorCli.ts b/generators/typescript/sdk/cli/src/SdkGeneratorCli.ts index 5b7a8f81a27..0ca03330077 100644 --- a/generators/typescript/sdk/cli/src/SdkGeneratorCli.ts +++ b/generators/typescript/sdk/cli/src/SdkGeneratorCli.ts @@ -146,7 +146,7 @@ export class SdkGeneratorCli extends AbstractGeneratorCli { inlineFileProperties: customConfig.inlineFileProperties ?? false, inlinePathParameters: customConfig.inlinePathParameters ?? false, writeUnitTests: customConfig.generateWireTests ?? config.writeUnitTests, - executionEnvironment: this.exectuionEnvironment(config), + executionEnvironment: this.executionEnvironment(config), packageJson: customConfig.packageJson, outputJsr: customConfig.publishToJsr ?? false, omitUndefined: customConfig.omitUndefined ?? false, @@ -197,7 +197,7 @@ export class SdkGeneratorCli extends AbstractGeneratorCli { return customConfig.publishToJsr ?? false; } - protected exectuionEnvironment(config: FernGeneratorExec.GeneratorConfig): "local" | "dev" | "prod" { + protected executionEnvironment(config: FernGeneratorExec.GeneratorConfig): "local" | "dev" | "prod" { return config.environment.type === "local" ? "local" : config.environment.coordinatorUrlV2.endsWith("dev2.buildwithfern.com") diff --git a/generators/typescript/sdk/client-class-generator/src/endpoint-request/GeneratedFileUploadEndpointRequest.ts b/generators/typescript/sdk/client-class-generator/src/endpoint-request/GeneratedFileUploadEndpointRequest.ts index 5da64106a6e..00f8eec1298 100644 --- a/generators/typescript/sdk/client-class-generator/src/endpoint-request/GeneratedFileUploadEndpointRequest.ts +++ b/generators/typescript/sdk/client-class-generator/src/endpoint-request/GeneratedFileUploadEndpointRequest.ts @@ -316,7 +316,7 @@ export class GeneratedFileUploadEndpointRequest implements GeneratedEndpointRequ undefined, ts.factory.createAwaitExpression( context.coreUtilities.formDataUtils.getRequest({ - referencetoFormData: ts.factory.createIdentifier( + referenceToFormData: ts.factory.createIdentifier( GeneratedFileUploadEndpointRequest.FORM_DATA_VARIABLE_NAME ) }) @@ -339,12 +339,12 @@ export class GeneratedFileUploadEndpointRequest implements GeneratedEndpointRequ queryParameters: this.queryParams != null ? this.queryParams.getReferenceTo(context) : undefined, requestType: "file", body: context.coreUtilities.formDataUtils.getBody({ - referencetoFormData: ts.factory.createIdentifier( + referenceToFormData: ts.factory.createIdentifier( GeneratedFileUploadEndpointRequest.FORM_DATA_REQUEST_OPTIONS_VARIABLE_NAME ) }), duplex: context.coreUtilities.formDataUtils.getDuplexSetting({ - referencetoFormData: ts.factory.createIdentifier( + referenceToFormData: ts.factory.createIdentifier( GeneratedFileUploadEndpointRequest.FORM_DATA_REQUEST_OPTIONS_VARIABLE_NAME ) }) @@ -361,7 +361,7 @@ export class GeneratedFileUploadEndpointRequest implements GeneratedEndpointRequ endpoint: this.endpoint, additionalSpreadHeaders: [ context.coreUtilities.formDataUtils.getHeaders({ - referencetoFormData: ts.factory.createIdentifier( + referenceToFormData: ts.factory.createIdentifier( GeneratedFileUploadEndpointRequest.FORM_DATA_REQUEST_OPTIONS_VARIABLE_NAME ) }) diff --git a/generators/typescript/sdk/client-class-generator/src/endpoints/GeneratedStreamingEndpointImplementation.ts b/generators/typescript/sdk/client-class-generator/src/endpoints/GeneratedStreamingEndpointImplementation.ts index e0fe4fc71c6..d43febd78d2 100644 --- a/generators/typescript/sdk/client-class-generator/src/endpoints/GeneratedStreamingEndpointImplementation.ts +++ b/generators/typescript/sdk/client-class-generator/src/endpoints/GeneratedStreamingEndpointImplementation.ts @@ -105,7 +105,7 @@ export class GeneratedStreamingEndpointImplementation implements GeneratedEndpoi context: SdkContext; }): ts.Node[] { const responseVariableName = "response"; - const itemVaribaleName = "item"; + const itemVariableName = "item"; return [ ts.factory.createVariableStatement( undefined, @@ -126,7 +126,7 @@ export class GeneratedStreamingEndpointImplementation implements GeneratedEndpoi ts.factory.createVariableDeclarationList( [ ts.factory.createVariableDeclaration( - ts.factory.createIdentifier(itemVaribaleName), + ts.factory.createIdentifier(itemVariableName), undefined, undefined, undefined @@ -144,7 +144,7 @@ export class GeneratedStreamingEndpointImplementation implements GeneratedEndpoi ts.factory.createIdentifier("log") ), undefined, - [ts.factory.createIdentifier(itemVaribaleName)] + [ts.factory.createIdentifier(itemVariableName)] ) ) ], diff --git a/generators/typescript/sdk/client-class-generator/src/endpoints/default/GeneratedDefaultEndpointImplementation.ts b/generators/typescript/sdk/client-class-generator/src/endpoints/default/GeneratedDefaultEndpointImplementation.ts index 488f5bd131e..78379e24aae 100644 --- a/generators/typescript/sdk/client-class-generator/src/endpoints/default/GeneratedDefaultEndpointImplementation.ts +++ b/generators/typescript/sdk/client-class-generator/src/endpoints/default/GeneratedDefaultEndpointImplementation.ts @@ -102,14 +102,14 @@ export class GeneratedDefaultEndpointImplementation implements GeneratedEndpoint continue; } const docsStrPrefix = `@param {${parameter.type}} ${parameter.name} - `; - const docsStrs = parameter.docs.split("\n").map((line, index) => { + const docsStrings = parameter.docs.split("\n").map((line, index) => { if (index === 0) { return `${docsStrPrefix}${line}`; } else { return `${" ".repeat(docsStrPrefix.length)}${line}`; } }); - params.push(...docsStrs); + params.push(...docsStrings); } // Every method supports request options, so we always include this parameter last. @@ -194,7 +194,7 @@ export class GeneratedDefaultEndpointImplementation implements GeneratedEndpoint const responseVariableName = "response"; const pageVariableName = "page"; - const itemVaribaleName = "item"; + const itemVariableName = "item"; return [ ts.factory.createVariableStatement( undefined, @@ -215,7 +215,7 @@ export class GeneratedDefaultEndpointImplementation implements GeneratedEndpoint ts.factory.createVariableDeclarationList( [ ts.factory.createVariableDeclaration( - ts.factory.createIdentifier(itemVaribaleName), + ts.factory.createIdentifier(itemVariableName), undefined, undefined, undefined @@ -233,7 +233,7 @@ export class GeneratedDefaultEndpointImplementation implements GeneratedEndpoint ts.factory.createIdentifier("log") ), undefined, - [ts.factory.createIdentifier(itemVaribaleName)] + [ts.factory.createIdentifier(itemVariableName)] ) ) ], diff --git a/generators/typescript/sdk/client-class-generator/src/endpoints/utils/appendPropertyToFormData.ts b/generators/typescript/sdk/client-class-generator/src/endpoints/utils/appendPropertyToFormData.ts index 490ff994654..2a1f20d04da 100644 --- a/generators/typescript/sdk/client-class-generator/src/endpoints/utils/appendPropertyToFormData.ts +++ b/generators/typescript/sdk/client-class-generator/src/endpoints/utils/appendPropertyToFormData.ts @@ -31,7 +31,7 @@ export function appendPropertyToFormData({ const FOR_LOOP_ITEM_VARIABLE_NAME = "_file"; let statement = context.coreUtilities.formDataUtils.appendFile({ - referencetoFormData: referenceToFormData, + referenceToFormData, key: property.key.wireValue, value: ts.factory.createIdentifier( getParameterNameForFile({ @@ -70,7 +70,7 @@ export function appendPropertyToFormData({ ts.factory.createBlock( [ context.coreUtilities.formDataUtils.appendFile({ - referencetoFormData: referenceToFormData, + referenceToFormData, key: property.key.wireValue, value: ts.factory.createIdentifier(FOR_LOOP_ITEM_VARIABLE_NAME) }) @@ -129,7 +129,7 @@ export function appendPropertyToFormData({ ts.factory.createBlock( [ context.coreUtilities.formDataUtils.append({ - referencetoFormData: referenceToFormData, + referenceToFormData, key: property.name.wireValue, value: stringifyIterableItemType( ts.factory.createIdentifier(FOR_LOOP_ITEM_VARIABLE_NAME), @@ -172,7 +172,7 @@ export function appendPropertyToFormData({ } } else { statement = context.coreUtilities.formDataUtils.append({ - referencetoFormData: referenceToFormData, + referenceToFormData, key: property.name.wireValue, value: context.type.stringify(referenceToBodyProperty, property.valueType, { includeNullCheckIfOptional: false diff --git a/generators/typescript/sdk/client-class-generator/src/request-parameter/AbstractRequestParameter.ts b/generators/typescript/sdk/client-class-generator/src/request-parameter/AbstractRequestParameter.ts index 0f1aeff2e6e..162afdabea6 100644 --- a/generators/typescript/sdk/client-class-generator/src/request-parameter/AbstractRequestParameter.ts +++ b/generators/typescript/sdk/client-class-generator/src/request-parameter/AbstractRequestParameter.ts @@ -72,7 +72,7 @@ export abstract class AbstractRequestParameter implements RequestParameter { example: ExampleEndpointCall; opts: GetReferenceOpts; }): ts.Expression | undefined; - protected abstract getParameterType(contxt: SdkContext): { + protected abstract getParameterType(context: SdkContext): { type: ts.TypeNode; hasQuestionToken: boolean; initializer?: ts.Expression; diff --git a/generators/typescript/sdk/environments-generator/src/EnvironmentsGenerator.ts b/generators/typescript/sdk/environments-generator/src/EnvironmentsGenerator.ts index ea82c96a47a..4405c90f5ea 100644 --- a/generators/typescript/sdk/environments-generator/src/EnvironmentsGenerator.ts +++ b/generators/typescript/sdk/environments-generator/src/EnvironmentsGenerator.ts @@ -46,9 +46,9 @@ export class EnvironmentsGenerator { environmentEnumName, defaultEnvironmentId: environmentsConfig.defaultEnvironment ?? undefined }), - multipleBaseUrls: (mulitpleBaseUrlEnvironments) => + multipleBaseUrls: (multipleBaseUrlEnvironments) => new GeneratedMultipleUrlsEnvironmentsImpl({ - environments: mulitpleBaseUrlEnvironments, + environments: multipleBaseUrlEnvironments, environmentEnumName, environmentUrlsTypeName, defaultEnvironmentId: environmentsConfig.defaultEnvironment ?? undefined diff --git a/generators/typescript/sdk/features.yml b/generators/typescript/sdk/features.yml index 3707656708f..c3a3172391a 100644 --- a/generators/typescript/sdk/features.yml +++ b/generators/typescript/sdk/features.yml @@ -12,31 +12,31 @@ features: description: | When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error will be thrown. - + - id: PAGINATION - description: | + description: | List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items: - + # - id: RAW_RESPONSES # advanced: true - # description: | - # The SDK provides access to raw response data, including headers, through the `.asRaw()` method. When using `.asRaw()`, + # description: | + # The SDK provides access to raw response data, including headers, through the `.asRaw()` method. When using `.asRaw()`, # the parsed response body will be available in the `body` field, along with the response headers: - + - id: ADDITIONAL_HEADERS advanced: true - description: | - If you would like to send additional headers as part of the request, use the `headers` request option. - + description: | + If you would like to send additional headers as part of the request, use the `headers` request option. + - id: RETRIES advanced: true description: | The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long - as the request is deemed retriable and the number of retry attempts has not grown larger than the configured + as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). - A request is deemed retriable when any of the following HTTP status codes is returned: - + A request is deemed retryable when any of the following HTTP status codes is returned: + - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors) @@ -70,4 +70,3 @@ features: The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an unsupported environment, this provides a way for you to break glass and ensure the SDK works. - \ No newline at end of file diff --git a/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/src/GeneratedSdkEndpointTypeSchemasImpl.ts b/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/src/GeneratedSdkEndpointTypeSchemasImpl.ts index ca43fd2b2fe..3687eef01c9 100644 --- a/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/src/GeneratedSdkEndpointTypeSchemasImpl.ts +++ b/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/src/GeneratedSdkEndpointTypeSchemasImpl.ts @@ -118,7 +118,7 @@ export class GeneratedSdkEndpointTypeSchemasImpl implements GeneratedSdkEndpoint if (endpoint.response?.body?.type === "streaming") { if (endpoint.response.body.value.type === "text") { - throw new Error("Non-json responses are not supportd"); + throw new Error("Non-json responses are not supported"); } switch (endpoint.response.body.value.payload.type) { case "primitive": @@ -165,12 +165,12 @@ export class GeneratedSdkEndpointTypeSchemasImpl implements GeneratedSdkEndpoint errorDiscriminationStrategy: ErrorDiscriminationStrategy; }): GeneratedEndpointErrorSchema { return ErrorDiscriminationStrategy._visit(errorDiscriminationStrategy, { - property: (properyDiscriminationStrategy) => + property: (propertyDiscriminationStrategy) => new GeneratedEndpointErrorSchemaImpl({ packageId, endpoint, errorResolver, - discriminationStrategy: properyDiscriminationStrategy + discriminationStrategy: propertyDiscriminationStrategy }), statusCode: () => StatusCodeDiscriminatedEndpointErrorSchema, _other: () => { @@ -260,13 +260,13 @@ export class GeneratedSdkEndpointTypeSchemasImpl implements GeneratedSdkEndpoint throw new Error("Cannot deserialize response because it's not defined"); } if (this.endpoint.response.body.type === "streaming") { - throw new Error("Cannot deserailize streaming response in deserializeResponse"); + throw new Error("Cannot deserialize streaming response in deserializeResponse"); } if (this.endpoint.response.body.type === "streamParameter") { - throw new Error("Cannot deserailize streaming response in deserializeResponse"); + throw new Error("Cannot deserialize streaming response in deserializeResponse"); } if (this.endpoint.response.body.type === "bytes") { - throw new Error("Cannot deserailize bytes response in deserializeResponse"); + throw new Error("Cannot deserialize bytes response in deserializeResponse"); } if (this.endpoint.response.body.type === "fileDownload") { diff --git a/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtils.ts b/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtils.ts index 9443a4a751c..f12755f65c2 100644 --- a/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtils.ts +++ b/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtils.ts @@ -3,16 +3,16 @@ import { ts } from "ts-morph"; export interface FormDataUtils { newFormData: () => ts.AwaitExpression; - append: (args: { referencetoFormData: ts.Expression; key: string; value: ts.Expression }) => ts.Statement; + append: (args: { referenceToFormData: ts.Expression; key: string; value: ts.Expression }) => ts.Statement; appendFile: (args: { - referencetoFormData: ts.Expression; + referenceToFormData: ts.Expression; key: string; value: ts.Expression; filename?: ts.Expression; }) => ts.Statement; - getBody: (args: { referencetoFormData: ts.Expression }) => ts.Expression; - getHeaders: (args: { referencetoFormData: ts.Expression }) => ts.Expression; - getRequest: (args: { referencetoFormData: ts.Expression }) => ts.Expression; - getDuplexSetting: (args: { referencetoFormData: ts.Expression }) => ts.Expression; + getBody: (args: { referenceToFormData: ts.Expression }) => ts.Expression; + getHeaders: (args: { referenceToFormData: ts.Expression }) => ts.Expression; + getRequest: (args: { referenceToFormData: ts.Expression }) => ts.Expression; + getDuplexSetting: (args: { referenceToFormData: ts.Expression }) => ts.Expression; } diff --git a/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtilsImpl.ts b/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtilsImpl.ts index 92d9cf67b5e..d6f06abf0a9 100644 --- a/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtilsImpl.ts +++ b/generators/typescript/utils/commons/src/core-utilities/form-data-utils/FormDataUtilsImpl.ts @@ -34,17 +34,17 @@ export class FormDataUtilsImpl extends CoreUtility implements FormDataUtils { ); public readonly append = ({ - referencetoFormData, + referenceToFormData, key, value }: { - referencetoFormData: ts.Expression; + referenceToFormData: ts.Expression; key: string; value: ts.Expression; }): ts.Statement => { return ts.factory.createExpressionStatement( ts.factory.createCallExpression( - ts.factory.createPropertyAccessExpression(referencetoFormData, ts.factory.createIdentifier("append")), + ts.factory.createPropertyAccessExpression(referenceToFormData, ts.factory.createIdentifier("append")), undefined, [ts.factory.createStringLiteral(key), value] ) @@ -52,12 +52,12 @@ export class FormDataUtilsImpl extends CoreUtility implements FormDataUtils { }; public readonly appendFile = ({ - referencetoFormData, + referenceToFormData, key, value, filename }: { - referencetoFormData: ts.Expression; + referenceToFormData: ts.Expression; key: string; value: ts.Expression; filename?: ts.Expression; @@ -66,7 +66,7 @@ export class FormDataUtilsImpl extends CoreUtility implements FormDataUtils { ts.factory.createAwaitExpression( ts.factory.createCallExpression( ts.factory.createPropertyAccessExpression( - referencetoFormData, + referenceToFormData, ts.factory.createIdentifier("appendFile") ), undefined, @@ -78,27 +78,27 @@ export class FormDataUtilsImpl extends CoreUtility implements FormDataUtils { ); }; - public readonly getRequest = ({ referencetoFormData }: { referencetoFormData: ts.Expression }): ts.Expression => { + public readonly getRequest = ({ referenceToFormData }: { referenceToFormData: ts.Expression }): ts.Expression => { return ts.factory.createCallExpression( - ts.factory.createPropertyAccessExpression(referencetoFormData, ts.factory.createIdentifier("getRequest")), + ts.factory.createPropertyAccessExpression(referenceToFormData, ts.factory.createIdentifier("getRequest")), undefined, [] ); }; - public readonly getBody = ({ referencetoFormData }: { referencetoFormData: ts.Expression }): ts.Expression => { - return ts.factory.createPropertyAccessExpression(referencetoFormData, ts.factory.createIdentifier("body")); + public readonly getBody = ({ referenceToFormData }: { referenceToFormData: ts.Expression }): ts.Expression => { + return ts.factory.createPropertyAccessExpression(referenceToFormData, ts.factory.createIdentifier("body")); }; - public readonly getHeaders = ({ referencetoFormData }: { referencetoFormData: ts.Expression }): ts.Expression => { - return ts.factory.createPropertyAccessExpression(referencetoFormData, ts.factory.createIdentifier("headers")); + public readonly getHeaders = ({ referenceToFormData }: { referenceToFormData: ts.Expression }): ts.Expression => { + return ts.factory.createPropertyAccessExpression(referenceToFormData, ts.factory.createIdentifier("headers")); }; public readonly getDuplexSetting = ({ - referencetoFormData + referenceToFormData }: { - referencetoFormData: ts.Expression; + referenceToFormData: ts.Expression; }): ts.Expression => { - return ts.factory.createPropertyAccessExpression(referencetoFormData, ts.factory.createIdentifier("duplex")); + return ts.factory.createPropertyAccessExpression(referenceToFormData, ts.factory.createIdentifier("duplex")); }; } diff --git a/generators/typescript/utils/commons/src/referencing/getQualifiedNameOfDirectory.ts b/generators/typescript/utils/commons/src/referencing/getQualifiedNameOfDirectory.ts index 45c338a6c6e..09cc37bfc4d 100644 --- a/generators/typescript/utils/commons/src/referencing/getQualifiedNameOfDirectory.ts +++ b/generators/typescript/utils/commons/src/referencing/getQualifiedNameOfDirectory.ts @@ -19,7 +19,7 @@ export function getQualifiedNameOfDirectory({ constructQualifiedName, prefix }: getQualifiedNameOfDirectory.Args): QualifiedName { - const { initial, remainingDirectories } = splitQualifieidName({ convertToQualifiedName, prefix, pathToDirectory }); + const { initial, remainingDirectories } = splitQualifiedName({ convertToQualifiedName, prefix, pathToDirectory }); let qualifiedReference = initial; @@ -59,7 +59,7 @@ export function getQualifiedNameOfDirectory({ return qualifiedReference; } -function splitQualifieidName({ +function splitQualifiedName({ convertToQualifiedName, pathToDirectory, prefix diff --git a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/Node18UniversalStreamWrapper.test.ts index b923255644d..de405bd9060 100644 --- a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/NodePre18StreamWrapper.test.ts b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/NodePre18StreamWrapper.test.ts index 9ee1ef3e9ec..734baa67544 100644 --- a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/UndiciStreamWrapper.test.ts b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/UndiciStreamWrapper.test.ts index 06e5e95b6c7..0b9130b1bdc 100644 --- a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/__test__/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/generators/typescript/utils/core-utilities/zurg/src/__test__/schema-utils/getSchemaUtils.test.ts b/generators/typescript/utils/core-utilities/zurg/src/__test__/schema-utils/getSchemaUtils.test.ts index 74e5bf730b4..0ddb67f4304 100644 --- a/generators/typescript/utils/core-utilities/zurg/src/__test__/schema-utils/getSchemaUtils.test.ts +++ b/generators/typescript/utils/core-utilities/zurg/src/__test__/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1) diff --git a/package.json b/package.json index 769a6db9931..dfc380d2cdf 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "lint:staged": "lint-staged", "lint:style": "stylelint 'packages/**/src/**/*.scss' --allow-empty-input --max-warnings 0", "lint:style:fix": "pnpm lint:style --fix", + "lint:spelling": "cspell **", "format": "prettier --write --ignore-unknown --ignore-path ./shared/.prettierignore \"**\"", "format:fix": "pnpm format --ignore-path ./shared/.prettierignore \"**\"", "format:check": "prettier --check --ignore-unknown --ignore-path ./shared/.prettierignore \"**\"", @@ -73,6 +74,7 @@ "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "chalk": "^5.3.0", + "cspell": "^8.17.2", "depcheck": "^1.4.7", "eslint": "^8.56.0", "eslint-plugin-deprecation": "^3.0.0", diff --git a/packages/cli/api-importers/commons/src/FernDefinitionBuilder.ts b/packages/cli/api-importers/commons/src/FernDefinitionBuilder.ts index 25aacaf597c..f363cddd6ec 100644 --- a/packages/cli/api-importers/commons/src/FernDefinitionBuilder.ts +++ b/packages/cli/api-importers/commons/src/FernDefinitionBuilder.ts @@ -470,7 +470,7 @@ export class FernDefinitionBuilderImpl implements FernDefinitionBuilder { }; } - // subsitute definition files + // substitute definition files for (const file of Object.values(definitionFiles)) { if (file.service != null) { file.service = { diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/asyncapi/AsyncAPIParserContext.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/asyncapi/AsyncAPIParserContext.ts index 8335a5153f6..9d8396a8512 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/asyncapi/AsyncAPIParserContext.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/asyncapi/AsyncAPIParserContext.ts @@ -89,7 +89,7 @@ export abstract class AbstractAsyncAPIV2ParserContext implements SchemaParserCon if (splitSchemaKey[1] === "properties" && splitSchemaKey[2] != null) { const resolvedProperty = resolvedSchema.properties?.[splitSchemaKey[2]]; if (resolvedProperty == null) { - throw new Error(`${schema.$ref} is undefiened. Property does not exist on object.`); + throw new Error(`${schema.$ref} is undefined. Property does not exist on object.`); } else if (isReferenceObject(resolvedProperty)) { resolvedSchema = this.resolveSchemaReference(resolvedProperty); } else { @@ -140,13 +140,13 @@ export abstract class AbstractAsyncAPIV2ParserContext implements SchemaParserCon public abstract markReferencedByDiscriminatedUnion( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, times: number ): void; public abstract markSchemaWithDiscriminantValue( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, discriminantValue: string ): void; } @@ -179,13 +179,13 @@ export class AsyncAPIV2ParserContext extends AbstractAsyncAPIV2ParserContext { return; } - markReferencedByDiscriminatedUnion(schema: OpenAPIV3.ReferenceObject, discrminant: string, times: number): void { + markReferencedByDiscriminatedUnion(schema: OpenAPIV3.ReferenceObject, discriminant: string, times: number): void { return; } markSchemaWithDiscriminantValue( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, discriminantValue: string ): void { return; diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/AbstractOpenAPIV3ParserContext.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/AbstractOpenAPIV3ParserContext.ts index d9b4916175e..a7aa7738edb 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/AbstractOpenAPIV3ParserContext.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/AbstractOpenAPIV3ParserContext.ts @@ -238,13 +238,13 @@ export abstract class AbstractOpenAPIV3ParserContext implements SchemaParserCont public abstract markReferencedByDiscriminatedUnion( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, times: number ): void; public abstract markSchemaWithDiscriminantValue( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, discriminantValue: string ): void; diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/DummyOpenAPIV3ParserContext.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/DummyOpenAPIV3ParserContext.ts index 535de82f6c8..9fe1107dfaa 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/DummyOpenAPIV3ParserContext.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/DummyOpenAPIV3ParserContext.ts @@ -53,7 +53,7 @@ export class DummyOpenAPIV3ParserContext extends AbstractOpenAPIV3ParserContext public markReferencedByDiscriminatedUnion( _schema: OpenAPIV3.ReferenceObject, - _discrminant: string, + _discriminant: string, _times: number ): void { return; @@ -75,7 +75,7 @@ export class DummyOpenAPIV3ParserContext extends AbstractOpenAPIV3ParserContext public markSchemaWithDiscriminantValue( _schema: OpenAPIV3.ReferenceObject, - _discrminant: string, + _discriminant: string, _discriminantValue: string ): void { return; diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/OpenAPIV3ParserContext.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/OpenAPIV3ParserContext.ts index bb34f0cf4ce..175a666b978 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/OpenAPIV3ParserContext.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/OpenAPIV3ParserContext.ts @@ -17,8 +17,8 @@ export class OpenAPIV3ParserContext extends AbstractOpenAPIV3ParserContext { private twoOrMoreRequestsReferencedSchemas: Set = new Set(); private singleRequestReferencedSchemas: Set = new Set(); - private discrminatedUnionReferences: Record = {}; - private discrminatedUnionMetadata: Record = {}; + private discriminatedUnionReferences: Record = {}; + private discriminatedUnionMetadata: Record = {}; private schemasToExclude: Set = new Set(); constructor({ @@ -74,16 +74,16 @@ export class OpenAPIV3ParserContext extends AbstractOpenAPIV3ParserContext { public markReferencedByDiscriminatedUnion( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, times: number ): void { - const existingReference = this.discrminatedUnionReferences[schema.$ref]; + const existingReference = this.discriminatedUnionReferences[schema.$ref]; if (existingReference != null) { - existingReference.discriminants.add(discrminant); + existingReference.discriminants.add(discriminant); existingReference.numReferences += times; } else { - this.discrminatedUnionReferences[schema.$ref] = { - discriminants: new Set([discrminant]), + this.discriminatedUnionReferences[schema.$ref] = { + discriminants: new Set([discriminant]), numReferences: times }; } @@ -92,26 +92,26 @@ export class OpenAPIV3ParserContext extends AbstractOpenAPIV3ParserContext { public getReferencesFromDiscriminatedUnion( schema: OpenAPIV3.ReferenceObject ): DiscriminatedUnionReference | undefined { - return this.discrminatedUnionReferences[schema.$ref]; + return this.discriminatedUnionReferences[schema.$ref]; } public markSchemaWithDiscriminantValue( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, discriminantValue: string ): void { - const existingMetadata = this.discrminatedUnionMetadata[schema.$ref]; + const existingMetadata = this.discriminatedUnionMetadata[schema.$ref]; if (existingMetadata != null) { - existingMetadata.discriminants.set(discrminant, discriminantValue); + existingMetadata.discriminants.set(discriminant, discriminantValue); } else { - this.discrminatedUnionMetadata[schema.$ref] = { - discriminants: new Map([[discrminant, discriminantValue]]) + this.discriminatedUnionMetadata[schema.$ref] = { + discriminants: new Map([[discriminant, discriminantValue]]) }; } } public getDiscriminatedUnionMetadata(schema: OpenAPIV3.ReferenceObject): DiscriminatedUnionMetadata | undefined { - return this.discrminatedUnionMetadata[schema.$ref]; + return this.discriminatedUnionMetadata[schema.$ref]; } public excludeSchema(schemaId: SchemaId): void { diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/ExampleEndpointFactory.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/ExampleEndpointFactory.ts index 7277146b452..bfed460442e 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/ExampleEndpointFactory.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/ExampleEndpointFactory.ts @@ -541,7 +541,7 @@ export function isExamplePrimitive(example: FullExample): boolean { switch (example.value.type) { case "discriminated": return false; - case "undisciminated": + case "undiscriminated": return isExamplePrimitive(example.value.value); default: return false; @@ -569,7 +569,7 @@ export function getNameFromSchemaWithExample(schema: SchemaWithExample): string switch (schema.value.type) { case "discriminated": return undefined; - case "undisciminated": + case "undiscriminated": return undefined; default: return undefined; diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertResponse.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertResponse.ts index b387f8ec22c..1703b1ff6b4 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertResponse.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertResponse.ts @@ -136,7 +136,7 @@ function convertResolvedResponse({ const resolvedResponse = isReferenceObject(response) ? context.resolveResponseReference(response) : response; if (resolvedResponse.content != null) { - const isdownloadFile = Object.entries(resolvedResponse.content).find(([_, mediaObject]) => { + const isDownloadFile = Object.entries(resolvedResponse.content).find(([_, mediaObject]) => { if (mediaObject.schema == null) { return false; } @@ -145,7 +145,7 @@ function convertResolvedResponse({ : mediaObject.schema; return resolvedSchema.type === "string" && resolvedSchema.format === "binary"; }); - if (isdownloadFile) { + if (isDownloadFile) { return ResponseWithExample.file({ description: resolvedResponse.description, source, statusCode }); } } diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertStreamingOperation.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertStreamingOperation.ts index 56d05cc9b1f..b9f0351403d 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertStreamingOperation.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertStreamingOperation.ts @@ -152,23 +152,23 @@ function getRequestBody({ return undefined; } - const resolvedRequstBodySchema = isReferenceObject(jsonMediaObject.schema) + const resolvedRequestBodySchema = isReferenceObject(jsonMediaObject.schema) ? context.resolveSchemaReference(jsonMediaObject.schema) : jsonMediaObject.schema; - if (resolvedRequstBodySchema.allOf == null && resolvedRequstBodySchema.properties == null) { + if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null) { return undefined; // not an object } - let streamingProperty = resolvedRequstBodySchema.properties?.[streamingExtension.streamConditionProperty]; + let streamingProperty = resolvedRequestBodySchema.properties?.[streamingExtension.streamConditionProperty]; if (streamingProperty != null && isReferenceObject(streamingProperty)) { streamingProperty = undefined; } const requestBodySchemaWithLiteralProperty: OpenAPIV3.SchemaObject = { - ...resolvedRequstBodySchema, + ...resolvedRequestBodySchema, properties: { - ...resolvedRequstBodySchema.properties, + ...resolvedRequestBodySchema.properties, [streamingExtension.streamConditionProperty]: { type: "boolean", "x-fern-boolean-literal": isStreaming, @@ -179,7 +179,7 @@ function getRequestBody({ // Set to undefined because we inline both the streaming and non-streaming request schemas // and title would cause conflicting names title: undefined, - required: [...(resolvedRequstBodySchema.required ?? []), streamingExtension.streamConditionProperty] + required: [...(resolvedRequestBodySchema.required ?? []), streamingExtension.streamConditionProperty] }; return { diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/fernExtensions.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/fernExtensions.ts index fbdca6cccbd..ed461408edc 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/fernExtensions.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/fernExtensions.ts @@ -117,7 +117,7 @@ export const FernOpenAPIExtension = { * it generates both a traditional unary endpoint, * as well as its streaming equivalent. The stream * condition property is included to specify a boolean - * propetry that tells the server whether or not the + * property that tells the server whether or not the * response should be streamed or not. * * Example usage: @@ -187,7 +187,7 @@ export const FernOpenAPIExtension = { ASYNC_CONFIG: "x-fern-async-config", /** - * Used to create veriables in the fern definition + * Used to create variables in the fern definition * Example usage: * x-fern-sdk-variables: * appName: @@ -420,7 +420,7 @@ export const FernOpenAPIExtension = { FERN_PROPERTY_NAME: "x-fern-property-name", /** - * Allows a user to configure that a union wiht a discriminant should + * Allows a user to configure that a union with a discriminant should * be undiscriminated. * * Shape: diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getPaginationExtension.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getPaginationExtension.ts index ed616f147a6..492dc4d1f1d 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getPaginationExtension.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getPaginationExtension.ts @@ -52,7 +52,7 @@ export function getFernPaginationExtension( return undefined; } if (typeof pagination === "boolean") { - // The endpoint is tryning to leverage the gloabl config, grab extension from global + // The endpoint is trying to leverage the global config, grab extension from global const topLevelPagination = getExtension( document, FernOpenAPIExtension.PAGINATION diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/runResolutions.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/runResolutions.ts index ca6b1cae91a..1caf2428176 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/runResolutions.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/runResolutions.ts @@ -35,7 +35,7 @@ export function runResolutions({ openapi }: { openapi: OpenAPIV3.Document }): Op interface AddComponentSchemaArgs { openapi: OpenAPIV3.Document; - /* A reference to the inlined schema which should be made a comonent schema */ + /* A reference to the inlined schema which should be made a component schema */ schemaReference: string; /* The name of the schema to be added */ schemaName: string; diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts index d852e90a6f3..7be8ba4e14c 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/options.ts @@ -14,8 +14,8 @@ export interface ParseOpenAPIOptions { audiences: string[] | undefined; /* Whether or not to make additional property values optional */ optionalAdditionalProperties: boolean; - /* Whether or not to cooerce enums as literals */ - cooerceEnumsToLiterals: boolean; + /* Whether or not to coerce enums as literals */ + coerceEnumsToLiterals: boolean; /* Whether or not to respect readonly properties in schemas */ respectReadonlySchemas: boolean; /* Whether or not to respect nullable properties in schemas */ @@ -47,7 +47,7 @@ export const DEFAULT_PARSE_OPENAPI_SETTINGS: ParseOpenAPIOptions = { useTitlesAsName: true, audiences: undefined, optionalAdditionalProperties: true, - cooerceEnumsToLiterals: true, + coerceEnumsToLiterals: true, respectReadonlySchemas: false, respectNullableSchemas: false, onlyIncludeReferencedSchemas: false, @@ -80,10 +80,10 @@ export function getParseOptions({ overrides?.optionalAdditionalProperties ?? options?.optionalAdditionalProperties ?? DEFAULT_PARSE_OPENAPI_SETTINGS.optionalAdditionalProperties, - cooerceEnumsToLiterals: - overrides?.cooerceEnumsToLiterals ?? - options?.cooerceEnumsToLiterals ?? - DEFAULT_PARSE_OPENAPI_SETTINGS.cooerceEnumsToLiterals, + coerceEnumsToLiterals: + overrides?.coerceEnumsToLiterals ?? + options?.coerceEnumsToLiterals ?? + DEFAULT_PARSE_OPENAPI_SETTINGS.coerceEnumsToLiterals, respectReadonlySchemas: overrides?.respectReadonlySchemas ?? options?.respectReadonlySchemas ?? diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/SchemaParserContext.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/SchemaParserContext.ts index 5a5a5f542b3..7af9bbaa398 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/SchemaParserContext.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/SchemaParserContext.ts @@ -15,13 +15,13 @@ export interface SchemaParserContext { resolveGroupName(groupName: SdkGroupName): SdkGroupName; markSchemaAsReferencedByNonRequest(schemaId: SchemaId): void; markSchemaAsReferencedByRequest(schemaId: SchemaId): void; - markReferencedByDiscriminatedUnion(schema: OpenAPIV3.ReferenceObject, discrminant: string, times: number): void; + markReferencedByDiscriminatedUnion(schema: OpenAPIV3.ReferenceObject, discriminant: string, times: number): void; // Schemas marked with a discriminant value will have their discriminants // added as explicitly defaulted literal fields markSchemaWithDiscriminantValue( schema: OpenAPIV3.ReferenceObject, - discrminant: string, + discriminant: string, discriminantValue: string ): void; } diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertDiscriminatedOneOf.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertDiscriminatedOneOf.ts index b0e1cba06e0..a3335ae04dc 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertDiscriminatedOneOf.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertDiscriminatedOneOf.ts @@ -90,7 +90,7 @@ export function convertDiscriminatedOneOf({ schema }; }); - return wrapDiscriminantedOneOf({ + return wrapDiscriminatedOneOf({ nameOverride, generatedName, title, @@ -188,7 +188,7 @@ export function convertDiscriminatedOneOfWithVariants({ schema }; }); - return wrapDiscriminantedOneOf({ + return wrapDiscriminatedOneOf({ nameOverride, generatedName, title, @@ -203,7 +203,7 @@ export function convertDiscriminatedOneOfWithVariants({ }); } -export function wrapDiscriminantedOneOf({ +export function wrapDiscriminatedOneOf({ nameOverride, generatedName, title, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts index 7059cc27c56..02ed20ec686 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertSchemas.ts @@ -685,7 +685,7 @@ export function convertSchemaObject( } } - // treat anyOf as undiscrminated unions + // treat anyOf as undiscriminated unions if (schema.anyOf != null && schema.anyOf.length > 0) { if (schema.anyOf.length === 1 && schema.anyOf[0] != null) { const convertedSchema = convertSchema( diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts index 65119913fa2..c00686dc595 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts @@ -67,7 +67,7 @@ export function convertUndiscriminatedOneOf({ if ( !isReferenceObject(schema) && schema.enum != null && - context.options.cooerceEnumsToLiterals && + context.options.coerceEnumsToLiterals && schema.type === "string" ) { return schema.enum.map((enumValue) => { @@ -148,7 +148,7 @@ export function convertUndiscriminatedOneOf({ return uniqueSubtypes[0]; } - return wrapUndiscriminantedOneOf({ + return wrapUndiscriminatedOneOf({ nameOverride, generatedName, title, @@ -282,7 +282,7 @@ export function convertUndiscriminatedOneOfWithDiscriminant({ return uniqueSubtypes[0]; } - return wrapUndiscriminantedOneOf({ + return wrapUndiscriminatedOneOf({ nameOverride, generatedName, title, @@ -355,7 +355,7 @@ function getUniqueSubTypeNames({ return prefixes; } -export function wrapUndiscriminantedOneOf({ +export function wrapUndiscriminatedOneOf({ nameOverride, generatedName, title, @@ -384,7 +384,7 @@ export function wrapUndiscriminantedOneOf({ generatedName, title, value: SchemaWithExample.oneOf( - OneOfSchemaWithExample.undisciminated({ + OneOfSchemaWithExample.undiscriminated({ description, availability, nameOverride, @@ -404,7 +404,7 @@ export function wrapUndiscriminantedOneOf({ }); } return SchemaWithExample.oneOf( - OneOfSchemaWithExample.undisciminated({ + OneOfSchemaWithExample.undiscriminated({ description, availability, nameOverride, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/examples/ExampleTypeFactory.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/examples/ExampleTypeFactory.ts index 4587ed39aef..61684b551f1 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/examples/ExampleTypeFactory.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/examples/ExampleTypeFactory.ts @@ -190,7 +190,7 @@ export class ExampleTypeFactory { const exampleDiscriminant = fullExample?.[schema.value.discriminantProperty]; const exampleUnionVariantSchema = schema.value.schemas[exampleDiscriminant]; - // Pick the union variant from the example, othwerise try each of them until one works + // Pick the union variant from the example, otherwise try each of them until one works const unionVariants = []; const schemaFromExample = this.getDiscriminatedUnionVariantSchema(schema.value, fullExample); @@ -269,7 +269,7 @@ export class ExampleTypeFactory { } return FullExample.oneOf(FullOneOfExample.discriminated(result)); } - case "undisciminated": { + case "undiscriminated": { const unionVariantSchema = this.getUnDiscriminatedUnionVariantSchema(schema.value, example); if (unionVariantSchema != null) { // TODO (we should select the oneOf schema based on the example) diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaToSchemaWithExample.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaToSchemaWithExample.ts index 09d374a2688..8e56332308e 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaToSchemaWithExample.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaToSchemaWithExample.ts @@ -232,8 +232,8 @@ function convertToOneOf(oneOfSchema: OneOfSchema): OneOfSchemaWithExample { source: oneOfSchema.source, inline: undefined }); - case "undisciminated": - return OneOfSchemaWithExample.undisciminated({ + case "undiscriminated": + return OneOfSchemaWithExample.undiscriminated({ description: oneOfSchema.description, availability: oneOfSchema.availability, generatedName: oneOfSchema.generatedName, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaWithExampleToSchema.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaWithExampleToSchema.ts index 5fbee12bbd0..563117fae60 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaWithExampleToSchema.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/convertSchemaWithExampleToSchema.ts @@ -210,8 +210,8 @@ function convertToOneOf(oneOfSchema: OneOfSchemaWithExample): OneOfSchema { source: oneOfSchema.source, inline: oneOfSchema.inline }); - case "undisciminated": - return OneOfSchema.undisciminated({ + case "undiscriminated": + return OneOfSchema.undiscriminated({ description: oneOfSchema.description, availability: oneOfSchema.availability, generatedName: oneOfSchema.generatedName, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/isSchemaPrmitive.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/isSchemaPrimitive.ts similarity index 100% rename from packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/isSchemaPrmitive.ts rename to packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/isSchemaPrimitive.ts diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/assembly.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/assembly.json index e1520eea8e4..a0660146937 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/assembly.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/assembly.json @@ -13186,7 +13186,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13416,7 +13416,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/belvo.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/belvo.json index d72fb9911a7..4d94bea91cf 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/belvo.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/belvo.json @@ -1378,7 +1378,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -1988,7 +1988,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -2977,7 +2977,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3869,7 +3869,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6429,7 +6429,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9906,7 +9906,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -21232,7 +21232,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -23410,7 +23410,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24226,7 +24226,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -30437,7 +30437,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31416,7 +31416,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35568,7 +35568,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36281,7 +36281,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43404,7 +43404,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43882,7 +43882,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47604,7 +47604,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47733,7 +47733,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48784,7 +48784,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -53338,7 +53338,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -62284,7 +62284,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -62346,7 +62346,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -63519,7 +63519,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -73345,7 +73345,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -85796,7 +85796,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -86076,7 +86076,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -87262,7 +87262,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -89449,7 +89449,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -91123,7 +91123,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -91986,7 +91986,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -94090,7 +94090,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -95049,7 +95049,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -97476,7 +97476,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -98247,7 +98247,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -100647,7 +100647,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -102820,7 +102820,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -103897,7 +103897,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -106633,7 +106633,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -108193,7 +108193,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -109047,7 +109047,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -109176,7 +109176,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -109983,7 +109983,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -111432,7 +111432,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112991,7 +112991,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -113925,7 +113925,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -114829,7 +114829,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -115370,7 +115370,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -118425,7 +118425,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -118504,7 +118504,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -118678,7 +118678,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -119294,7 +119294,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -121193,7 +121193,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -121296,7 +121296,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -121495,7 +121495,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -122333,7 +122333,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -123549,7 +123549,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -123592,7 +123592,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -123717,7 +123717,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -124557,7 +124557,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -126539,7 +126539,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -128330,7 +128330,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -142637,7 +142637,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -147735,7 +147735,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -161003,7 +161003,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -161739,7 +161739,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -161887,7 +161887,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -162336,7 +162336,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -162557,7 +162557,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -162647,7 +162647,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -163554,7 +163554,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -163811,7 +163811,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -164108,7 +164108,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -164715,7 +164715,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -166183,7 +166183,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -166352,7 +166352,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -166741,7 +166741,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -167214,7 +167214,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -169445,7 +169445,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -170072,7 +170072,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/deel.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/deel.json index 8e3bdc18831..ceff46eaaf3 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/deel.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/deel.json @@ -34006,7 +34006,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34147,7 +34147,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34190,7 +34190,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34275,7 +34275,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34318,7 +34318,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37170,7 +37170,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40964,7 +40964,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41007,7 +41007,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41050,7 +41050,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41368,7 +41368,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41411,7 +41411,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41454,7 +41454,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -42872,7 +42872,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -57764,7 +57764,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -59749,7 +59749,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/enums.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/enums.json index 98c64577e04..c3e9947ce10 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/enums.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/enums.json @@ -101,7 +101,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/flexport.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/flexport.json index f7b7157cc50..c4be0636540 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/flexport.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/flexport.json @@ -61435,7 +61435,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -64673,7 +64673,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -70902,7 +70902,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -76209,7 +76209,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/hookdeck.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/hookdeck.json index 66db21fee90..90bfbc40665 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/hookdeck.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/hookdeck.json @@ -304,7 +304,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -374,7 +374,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -444,7 +444,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -869,7 +869,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -1247,7 +1247,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -1848,7 +1848,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -2819,7 +2819,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -2869,7 +2869,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -2939,7 +2939,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3660,7 +3660,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3715,7 +3715,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3768,7 +3768,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3821,7 +3821,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3874,7 +3874,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4054,7 +4054,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4104,7 +4104,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4174,7 +4174,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6261,7 +6261,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6437,7 +6437,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6629,7 +6629,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6680,7 +6680,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6764,7 +6764,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6814,7 +6814,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6884,7 +6884,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9262,7 +9262,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9313,7 +9313,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9362,7 +9362,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9415,7 +9415,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9468,7 +9468,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9521,7 +9521,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9691,7 +9691,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9882,7 +9882,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10027,7 +10027,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10172,7 +10172,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10221,7 +10221,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10303,7 +10303,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10350,7 +10350,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10495,7 +10495,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10544,7 +10544,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10593,7 +10593,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10642,7 +10642,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10691,7 +10691,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10740,7 +10740,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10868,7 +10868,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10938,7 +10938,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -12712,7 +12712,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -12882,7 +12882,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13052,7 +13052,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13105,7 +13105,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13167,7 +13167,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13216,7 +13216,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13264,7 +13264,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13315,7 +13315,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13366,7 +13366,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13417,7 +13417,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13585,7 +13585,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13777,7 +13777,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13926,7 +13926,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14072,7 +14072,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14120,7 +14120,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14203,7 +14203,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14254,7 +14254,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14403,7 +14403,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14454,7 +14454,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14501,7 +14501,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14548,7 +14548,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14595,7 +14595,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14643,7 +14643,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14765,7 +14765,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14833,7 +14833,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15008,7 +15008,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15078,7 +15078,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15544,7 +15544,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15593,7 +15593,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15641,7 +15641,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15692,7 +15692,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15743,7 +15743,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15794,7 +15794,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15962,7 +15962,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16154,7 +16154,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16303,7 +16303,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16449,7 +16449,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16497,7 +16497,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16580,7 +16580,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16631,7 +16631,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16780,7 +16780,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16831,7 +16831,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16878,7 +16878,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16925,7 +16925,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16972,7 +16972,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17020,7 +17020,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17410,7 +17410,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17459,7 +17459,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17507,7 +17507,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17558,7 +17558,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17609,7 +17609,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17660,7 +17660,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17828,7 +17828,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18020,7 +18020,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18169,7 +18169,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18315,7 +18315,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18363,7 +18363,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18446,7 +18446,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18497,7 +18497,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18646,7 +18646,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18697,7 +18697,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18744,7 +18744,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18791,7 +18791,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18838,7 +18838,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18886,7 +18886,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -19774,7 +19774,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -19944,7 +19944,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20114,7 +20114,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20167,7 +20167,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20227,7 +20227,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20276,7 +20276,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20408,7 +20408,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20478,7 +20478,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20942,7 +20942,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20991,7 +20991,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -21380,7 +21380,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -21429,7 +21429,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -22578,7 +22578,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -23257,7 +23257,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24235,7 +24235,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24290,7 +24290,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24374,7 +24374,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24471,7 +24471,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24524,7 +24524,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24581,7 +24581,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24627,7 +24627,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24675,7 +24675,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24862,7 +24862,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25032,7 +25032,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25202,7 +25202,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25372,7 +25372,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25481,7 +25481,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25551,7 +25551,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26128,7 +26128,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26183,7 +26183,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26267,7 +26267,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26364,7 +26364,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26417,7 +26417,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26474,7 +26474,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26520,7 +26520,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26568,7 +26568,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26755,7 +26755,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26925,7 +26925,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -27095,7 +27095,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -27265,7 +27265,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -27374,7 +27374,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -27444,7 +27444,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -28880,7 +28880,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29102,7 +29102,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29284,7 +29284,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29466,7 +29466,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29519,7 +29519,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29590,7 +29590,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29639,7 +29639,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29688,7 +29688,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29853,7 +29853,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -29996,7 +29996,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -30045,7 +30045,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -30136,7 +30136,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -30206,7 +30206,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31694,7 +31694,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31745,7 +31745,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31794,7 +31794,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31847,7 +31847,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31900,7 +31900,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31953,7 +31953,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32123,7 +32123,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32314,7 +32314,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32459,7 +32459,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32604,7 +32604,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32653,7 +32653,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32735,7 +32735,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32782,7 +32782,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32927,7 +32927,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32976,7 +32976,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33025,7 +33025,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33074,7 +33074,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33123,7 +33123,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33172,7 +33172,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33300,7 +33300,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33370,7 +33370,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33911,7 +33911,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33961,7 +33961,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34031,7 +34031,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34587,7 +34587,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34757,7 +34757,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34927,7 +34927,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34980,7 +34980,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35064,7 +35064,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35286,7 +35286,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35470,7 +35470,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35651,7 +35651,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35702,7 +35702,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35769,7 +35769,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35816,7 +35816,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -35863,7 +35863,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36025,7 +36025,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36167,7 +36167,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36215,7 +36215,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36303,7 +36303,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36371,7 +36371,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36524,7 +36524,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -36594,7 +36594,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37060,7 +37060,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37282,7 +37282,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37466,7 +37466,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37647,7 +37647,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37698,7 +37698,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37765,7 +37765,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37812,7 +37812,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37859,7 +37859,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -38021,7 +38021,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -38163,7 +38163,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -38211,7 +38211,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -38581,7 +38581,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -38803,7 +38803,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -38987,7 +38987,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39168,7 +39168,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39219,7 +39219,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39286,7 +39286,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39333,7 +39333,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39380,7 +39380,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39542,7 +39542,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39684,7 +39684,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -39732,7 +39732,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40481,7 +40481,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40548,7 +40548,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40606,7 +40606,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40666,7 +40666,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40726,7 +40726,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40786,7 +40786,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40865,7 +40865,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40891,7 +40891,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41083,7 +41083,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41133,7 +41133,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41203,7 +41203,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43317,7 +43317,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43493,7 +43493,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43685,7 +43685,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43759,7 +43759,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43809,7 +43809,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43879,7 +43879,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46117,7 +46117,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46180,7 +46180,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46230,7 +46230,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46300,7 +46300,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46727,7 +46727,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47085,7 +47085,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47678,7 +47678,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48164,7 +48164,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48659,7 +48659,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48710,7 +48710,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48761,7 +48761,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48906,7 +48906,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48956,7 +48956,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -49026,7 +49026,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -49820,7 +49820,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -49996,7 +49996,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -50047,7 +50047,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -50098,7 +50098,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -50290,7 +50290,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -50484,7 +50484,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -50534,7 +50534,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -50604,7 +50604,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56408,7 +56408,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56456,7 +56456,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56637,7 +56637,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56747,7 +56747,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56831,7 +56831,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56887,7 +56887,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -58322,7 +58322,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -58387,7 +58387,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -58447,7 +58447,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -59020,7 +59020,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -59085,7 +59085,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -59145,7 +59145,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -60061,7 +60061,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -61219,7 +61219,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -63885,7 +63885,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -63950,7 +63950,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -64010,7 +64010,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -64446,7 +64446,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -64788,7 +64788,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -65123,7 +65123,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -66315,7 +66315,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -66385,7 +66385,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -66441,7 +66441,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -66497,7 +66497,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/humanloop.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/humanloop.json index e00f42a6e51..8dd3aa4c3ea 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/humanloop.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/humanloop.json @@ -4111,7 +4111,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -22050,7 +22050,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -22266,7 +22266,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -22795,7 +22795,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -23299,7 +23299,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -23726,7 +23726,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -23995,7 +23995,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24438,7 +24438,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24671,7 +24671,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24723,7 +24723,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25484,7 +25484,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25522,7 +25522,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25663,7 +25663,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -27129,7 +27129,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -27707,7 +27707,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -28073,7 +28073,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -28324,7 +28324,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -28626,7 +28626,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -30526,7 +30526,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31052,7 +31052,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31795,7 +31795,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -31941,7 +31941,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -32398,7 +32398,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33101,7 +33101,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33710,7 +33710,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -33856,7 +33856,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34361,7 +34361,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -34507,7 +34507,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37384,7 +37384,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37496,7 +37496,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37589,7 +37589,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -37714,7 +37714,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/inline-schema-reference.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/inline-schema-reference.json index d86f9e52ba9..372d60a3030 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/inline-schema-reference.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/inline-schema-reference.json @@ -110,7 +110,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/intercom.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/intercom.json index 035ca0ec942..342d1b3b1fb 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/intercom.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/intercom.json @@ -72160,7 +72160,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -80618,7 +80618,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -85539,7 +85539,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -103048,7 +103048,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -107124,7 +107124,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -107387,7 +107387,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -111921,7 +111921,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112052,7 +112052,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112717,7 +112717,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112967,7 +112967,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -117399,7 +117399,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -119277,7 +119277,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -119316,7 +119316,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -121854,7 +121854,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -122888,7 +122888,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json index 8cdeaa600c9..cc3e4f0c005 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json @@ -15754,7 +15754,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16312,7 +16312,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17115,7 +17115,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17158,7 +17158,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17453,7 +17453,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/only-include-referenced-schemas.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/only-include-referenced-schemas.json index 035ca0ec942..342d1b3b1fb 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/only-include-referenced-schemas.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/only-include-referenced-schemas.json @@ -72160,7 +72160,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -80618,7 +80618,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -85539,7 +85539,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -103048,7 +103048,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -107124,7 +107124,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -107387,7 +107387,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -111921,7 +111921,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112052,7 +112052,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112717,7 +112717,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -112967,7 +112967,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -117399,7 +117399,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -119277,7 +119277,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -119316,7 +119316,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -121854,7 +121854,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -122888,7 +122888,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/openapi-filter.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/openapi-filter.json index a9986eac6ca..66bf2dbbc7a 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/openapi-filter.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/openapi-filter.json @@ -6055,7 +6055,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10146,7 +10146,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -10409,7 +10409,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -14943,7 +14943,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15074,7 +15074,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15739,7 +15739,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -15989,7 +15989,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -20421,7 +20421,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -22314,7 +22314,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -22353,7 +22353,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -24906,7 +24906,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25940,7 +25940,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/permit.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/permit.json index 5cf896bb097..2d62c66f74f 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/permit.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/permit.json @@ -4445,7 +4445,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -16049,7 +16049,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -18749,7 +18749,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -26307,7 +26307,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -40472,7 +40472,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -41707,7 +41707,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43801,7 +43801,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rightbrain.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rightbrain.json index f07bb2a300b..2c3df0bceac 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rightbrain.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rightbrain.json @@ -59511,7 +59511,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -66162,7 +66162,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rules.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rules.json index 65038085a85..1fd6148c199 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rules.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/rules.json @@ -68,7 +68,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/seam.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/seam.json index 7d8330264b1..8c8a77479b6 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/seam.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/seam.json @@ -6784,7 +6784,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -7715,7 +7715,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -8324,7 +8324,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -8661,7 +8661,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9029,7 +9029,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -11758,7 +11758,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -12709,7 +12709,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -13266,7 +13266,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -17838,7 +17838,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -23186,7 +23186,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -25370,7 +25370,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43425,7 +43425,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -55062,7 +55062,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -55849,7 +55849,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -56201,7 +56201,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -60110,7 +60110,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -60572,7 +60572,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -65537,7 +65537,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/superagent.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/superagent.json index 0ba408a7d1f..747bb348a83 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/superagent.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/superagent.json @@ -4040,7 +4040,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/union-extension.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/union-extension.json index 5bc91a67017..6bc80b04a82 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/union-extension.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/union-extension.json @@ -39,7 +39,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/unions-v1.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/unions-v1.json index 4d2da11add0..ad5c091399a 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/unions-v1.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/unions-v1.json @@ -38,7 +38,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/uploadcare.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/uploadcare.json index 544fd9cdd43..ab40aceaf47 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/uploadcare.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/uploadcare.json @@ -382,7 +382,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -676,7 +676,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -1379,7 +1379,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -1703,7 +1703,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -2239,7 +2239,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -2391,7 +2391,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3328,7 +3328,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3629,7 +3629,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3973,7 +3973,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4916,7 +4916,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6087,7 +6087,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6159,7 +6159,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -7052,7 +7052,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -7247,7 +7247,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -8137,7 +8137,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -8199,7 +8199,7 @@ "file": "../openapi.json", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/valtown.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/valtown.json index e6b1853cbac..ed2f3509917 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/valtown.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/valtown.json @@ -3770,7 +3770,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3833,7 +3833,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3851,7 +3851,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -3877,7 +3877,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4263,7 +4263,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4326,7 +4326,7 @@ "type": "openapi" }, "inline": true, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4344,7 +4344,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4370,7 +4370,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -4748,7 +4748,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5039,7 +5039,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5498,7 +5498,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5592,7 +5592,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5669,7 +5669,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5685,7 +5685,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5779,7 +5779,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5856,7 +5856,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5872,7 +5872,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5966,7 +5966,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6043,7 +6043,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6059,7 +6059,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -6362,7 +6362,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -9149,7 +9149,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/webflow.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/webflow.json index efeca3fad91..ed9887e3993 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/webflow.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/webflow.json @@ -5319,7 +5319,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5472,7 +5472,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -5523,7 +5523,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43045,7 +43045,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43198,7 +43198,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -43248,7 +43248,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -44475,7 +44475,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -44628,7 +44628,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -44678,7 +44678,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -45206,7 +45206,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -45359,7 +45359,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -45409,7 +45409,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46380,7 +46380,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46533,7 +46533,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -46583,7 +46583,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47645,7 +47645,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47798,7 +47798,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -47848,7 +47848,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48000,7 +48000,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48152,7 +48152,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -48202,7 +48202,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -49038,7 +49038,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -49191,7 +49191,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -49241,7 +49241,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -51421,7 +51421,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -55052,7 +55052,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -57437,7 +57437,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -60541,7 +60541,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -62853,7 +62853,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -64947,7 +64947,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -69524,7 +69524,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -75793,7 +75793,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -81248,7 +81248,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -86644,7 +86644,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -91994,7 +91994,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -97403,7 +97403,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -99254,7 +99254,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -100065,7 +100065,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, @@ -100761,7 +100761,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/x-fern-encoding.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/x-fern-encoding.json index 2de861fa210..c0c8ef23b24 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/x-fern-encoding.json +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/x-fern-encoding.json @@ -90,7 +90,7 @@ "file": "../openapi.yml", "type": "openapi" }, - "type": "undisciminated" + "type": "undiscriminated" }, "type": "oneOf" }, diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/OpenApiIrConverterContext.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/OpenApiIrConverterContext.ts index 1afeb556190..83f1df22b19 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/OpenApiIrConverterContext.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/OpenApiIrConverterContext.ts @@ -251,7 +251,7 @@ export class OpenApiIrConverterContext { this.markSchemaAsReferenced(oneOf, namespace); } return; - case "undisciminated": + case "undiscriminated": for (const oneOf of schema.schemas) { this.markSchemaAsReferenced(oneOf, namespace); } diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildEnvironments.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildEnvironments.ts index 647b54f4df1..6ac4e5dae98 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildEnvironments.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildEnvironments.ts @@ -2,7 +2,7 @@ import { RawSchemas, isRawMultipleBaseUrlsEnvironment } from "@fern-api/fern-def import { OpenApiIrConverterContext } from "./OpenApiIrConverterContext"; -const PRODUCTION_ENVNIRONMENT_NAME = "Production"; +const PRODUCTION_ENVIRONMENT_NAME = "Production"; const DEFAULT_ENVIRONMENT_NAME = "Default"; function extractUrlsFromEnvironmentSchema( @@ -128,7 +128,7 @@ export function buildEnvironments(context: OpenApiIrConverterContext): void { context.setDefaultServerName(name); } context.builder.addEnvironment({ - name: PRODUCTION_ENVNIRONMENT_NAME, + name: PRODUCTION_ENVIRONMENT_NAME, schema: { urls: { ...extractUrlsFromEnvironmentSchema(topLevelServersWithName), @@ -136,6 +136,6 @@ export function buildEnvironments(context: OpenApiIrConverterContext): void { } } }); - context.builder.setDefaultEnvironment(PRODUCTION_ENVNIRONMENT_NAME); + context.builder.setDefaultEnvironment(PRODUCTION_ENVIRONMENT_NAME); } } diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildFernDefinition.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildFernDefinition.ts index 27b628b2065..e623187e44b 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildFernDefinition.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildFernDefinition.ts @@ -21,7 +21,7 @@ import { getTypeFromTypeReference } from "./utils/getTypeFromTypeReference"; export const ROOT_PREFIX = "root"; export const EXTERNAL_AUDIENCE = "external"; -/** All errrors are currently declared in __package__.yml */ +/** All errors are currently declared in __package__.yml */ export const ERROR_DECLARATIONS_FILENAME = RelativeFilePath.of(FERN_PACKAGE_MARKER_FILENAME); function addSchemas({ diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildQueryParameter.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildQueryParameter.ts index 8703af54b7c..ba448115a2c 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildQueryParameter.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildQueryParameter.ts @@ -33,7 +33,7 @@ export function buildQueryParameter({ let queryParameterType = getTypeFromTypeReference(typeReference.value); const queryParameterDefault = getDefaultFromTypeReference(typeReference.value); - // we can assume unknown-typed query parameteters are strings by default + // we can assume unknown-typed query parameters are strings by default if (queryParameterType === "unknown") { queryParameterType = "string"; } else if (queryParameterType === "optional") { @@ -125,7 +125,7 @@ function getQueryParameterTypeReference({ }), allowMultiple: true }; - } else if (resolvedSchema.type === "oneOf" && resolvedSchema.value.type === "undisciminated") { + } else if (resolvedSchema.type === "oneOf" && resolvedSchema.value.type === "undiscriminated") { // Try to generated enum from literal values const potentialEnumValues: (string | RawSchemas.EnumValueSchema)[] = []; for (const [_, schema] of Object.entries(resolvedSchema.value.schemas)) { @@ -290,7 +290,7 @@ function getQueryParameterTypeReference({ }), allowMultiple: true }; - } else if (schema.value.type === "oneOf" && schema.value.value.type === "undisciminated") { + } else if (schema.value.type === "oneOf" && schema.value.value.type === "undiscriminated") { // Try to generated enum from literal values const potentialEnumValues: (string | RawSchemas.EnumValueSchema)[] = []; for (const [_, oneOfSchema] of Object.entries(schema.value.value.schemas)) { diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildTypeDeclaration.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildTypeDeclaration.ts index 4fcc694adbf..f4ce00b072b 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildTypeDeclaration.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/buildTypeDeclaration.ts @@ -172,13 +172,13 @@ export function buildObjectTypeDeclaration({ continue; // just use the parent property instead of redefining } else { Object.entries(property.conflict).forEach(([schemaId]) => { - const parentSchemasToInine = getAllParentSchemasToInline({ + const parentSchemasToInline = getAllParentSchemasToInline({ property: property.key, schemaId, context, namespace }); - parentSchemasToInine.forEach((schemaToInline) => { + parentSchemasToInline.forEach((schemaToInline) => { schemasToInline.add(schemaToInline); }); }); @@ -218,7 +218,7 @@ export function buildObjectTypeDeclaration({ continue; } if (schemasToInline.has(allOf.schema) || schemasToInline.has(resolvedSchemaId)) { - continue; // dont extend from schemas that need to be inlined + continue; // don't extend from schemas that need to be inlined } const allOfTypeReference = buildTypeReference({ schema: Schema.reference(allOf), @@ -248,7 +248,7 @@ export function buildObjectTypeDeclaration({ } for (const extendedSchema of inlinedSchemaPropertyInfo.allOf) { if (schemasToInline.has(extendedSchema.schema)) { - continue; // dont extend from schemas that need to be inlined + continue; // don't extend from schemas that need to be inlined } const extendedSchemaTypeReference = buildTypeReference({ schema: Schema.reference(extendedSchema), diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/convertToHttpMethod.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/convertToHttpMethod.ts index b2d443f734a..b86cd7aa03a 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/convertToHttpMethod.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/convertToHttpMethod.ts @@ -18,7 +18,7 @@ export function convertToHttpMethod(httpMethod: HttpMethod): RawSchemas.HttpMeth throw new Error("HEAD is unsupported"); }, _other: () => { - throw new Error("Unkown http method is unsupported"); + throw new Error("Unknown http method is unsupported"); } }); } diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/getEndpointLocation.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/getEndpointLocation.ts index 0c341085197..4551f197adf 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/getEndpointLocation.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern/src/utils/getEndpointLocation.ts @@ -163,7 +163,7 @@ export function tokenizeString(input: string): string[] { return tokens; } -// When the url is /users/{userId}/sigin-in we want the split to be ["users", "{userId}", "sign", "in"] +// When the url is /users/{userId}/sign-in we want the split to be ["users", "{userId}", "sign", "in"] const NON_ALPHANUMERIC_EXCEPT_BRACES_REGEX = new RegExp("[^a-zA-Z0-9{}]+"); const BRACE_REGEX = new RegExp("[{}]", "g"); diff --git a/packages/cli/api-importers/openapi/openapi-ir/fern/definition/example.yml b/packages/cli/api-importers/openapi/openapi-ir/fern/definition/example.yml index cbdd2579850..12d5e506c6a 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/fern/definition/example.yml +++ b/packages/cli/api-importers/openapi/openapi-ir/fern/definition/example.yml @@ -48,4 +48,4 @@ types: FullOneOfExample: union: discriminated: map - undisciminated: FullExample + undiscriminated: FullExample diff --git a/packages/cli/api-importers/openapi/openapi-ir/fern/definition/finalIr.yml b/packages/cli/api-importers/openapi/openapi-ir/fern/definition/finalIr.yml index a10e030c6e0..44c13c8b225 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/fern/definition/finalIr.yml +++ b/packages/cli/api-importers/openapi/openapi-ir/fern/definition/finalIr.yml @@ -298,9 +298,9 @@ types: union: withStreaming: StreamingResponseExample withoutStreaming: example.FullExample - - StreamingResponseExample: - properties: + + StreamingResponseExample: + properties: sse: boolean events: list @@ -694,7 +694,7 @@ types: docs: Codegen friendly name. Read from `X-Enum-Names` generatedName: type: string - docs: Codegen friendly name. Generated by removing unalphanumeric characters and camel casing. + docs: Codegen friendly name. Generated by removing non-alphanumeric characters and camel casing. value: type: string docs: Value of the enum @@ -721,7 +721,7 @@ types: OneOfSchema: union: discriminated: DiscriminatedOneOfSchema - undisciminated: UnDiscriminatedOneOfSchema + undiscriminated: UnDiscriminatedOneOfSchema DiscriminatedOneOfSchema: extends: diff --git a/packages/cli/api-importers/openapi/openapi-ir/fern/definition/parseIr.yml b/packages/cli/api-importers/openapi/openapi-ir/fern/definition/parseIr.yml index e864c7ec5c8..893bf4b9596 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/fern/definition/parseIr.yml +++ b/packages/cli/api-importers/openapi/openapi-ir/fern/definition/parseIr.yml @@ -294,7 +294,7 @@ types: OneOfSchemaWithExample: union: discriminated: DiscriminatedOneOfSchemaWithExample - undisciminated: UnDiscriminatedOneOfSchemaWithExample + undiscriminated: UnDiscriminatedOneOfSchemaWithExample DiscriminatedOneOfSchemaWithExample: extends: diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/example/types/FullOneOfExample.ts b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/example/types/FullOneOfExample.ts index d4ff7d53ae1..d427d7a6772 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/example/types/FullOneOfExample.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/example/types/FullOneOfExample.ts @@ -6,7 +6,7 @@ import * as FernOpenapiIr from "../../../index"; export type FullOneOfExample = | FernOpenapiIr.FullOneOfExample.Discriminated - | FernOpenapiIr.FullOneOfExample.Undisciminated; + | FernOpenapiIr.FullOneOfExample.Undiscriminated; export namespace FullOneOfExample { export interface Discriminated extends _Utils { @@ -14,8 +14,8 @@ export namespace FullOneOfExample { value: Record; } - export interface Undisciminated extends _Utils { - type: "undisciminated"; + export interface Undiscriminated extends _Utils { + type: "undiscriminated"; value: FernOpenapiIr.FullExample; } @@ -25,7 +25,7 @@ export namespace FullOneOfExample { export interface _Visitor<_Result> { discriminated: (value: Record) => _Result; - undisciminated: (value: FernOpenapiIr.FullExample) => _Result; + undiscriminated: (value: FernOpenapiIr.FullExample) => _Result; _other: (value: { type: string }) => _Result; } } @@ -46,12 +46,12 @@ export const FullOneOfExample = { }; }, - undisciminated: (value: FernOpenapiIr.FullExample): FernOpenapiIr.FullOneOfExample.Undisciminated => { + undiscriminated: (value: FernOpenapiIr.FullExample): FernOpenapiIr.FullOneOfExample.Undiscriminated => { return { value: value, - type: "undisciminated", + type: "undiscriminated", _visit: function <_Result>( - this: FernOpenapiIr.FullOneOfExample.Undisciminated, + this: FernOpenapiIr.FullOneOfExample.Undiscriminated, visitor: FernOpenapiIr.FullOneOfExample._Visitor<_Result>, ) { return FernOpenapiIr.FullOneOfExample._visit(this, visitor); @@ -66,8 +66,8 @@ export const FullOneOfExample = { switch (value.type) { case "discriminated": return visitor.discriminated(value.value); - case "undisciminated": - return visitor.undisciminated(value.value); + case "undiscriminated": + return visitor.undiscriminated(value.value); default: return visitor._other(value as any); } diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/EnumValue.ts b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/EnumValue.ts index 7989fc0c8dd..57a07a21a7d 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/EnumValue.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/EnumValue.ts @@ -7,7 +7,7 @@ import * as FernOpenapiIr from "../../../index"; export interface EnumValue extends FernOpenapiIr.WithDescription, FernOpenapiIr.WithAvailability { /** Codegen friendly name. Read from `X-Enum-Names` */ nameOverride: string | undefined; - /** Codegen friendly name. Generated by removing unalphanumeric characters and camel casing. */ + /** Codegen friendly name. Generated by removing non-alphanumeric characters and camel casing. */ generatedName: string; /** Value of the enum */ value: string; diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/OneOfSchema.ts b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/OneOfSchema.ts index ff029edf785..18b2519bd40 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/OneOfSchema.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/finalIr/types/OneOfSchema.ts @@ -4,15 +4,15 @@ import * as FernOpenapiIr from "../../../index"; -export type OneOfSchema = FernOpenapiIr.OneOfSchema.Discriminated | FernOpenapiIr.OneOfSchema.Undisciminated; +export type OneOfSchema = FernOpenapiIr.OneOfSchema.Discriminated | FernOpenapiIr.OneOfSchema.Undiscriminated; export namespace OneOfSchema { export interface Discriminated extends FernOpenapiIr.DiscriminatedOneOfSchema, _Utils { type: "discriminated"; } - export interface Undisciminated extends FernOpenapiIr.UnDiscriminatedOneOfSchema, _Utils { - type: "undisciminated"; + export interface Undiscriminated extends FernOpenapiIr.UnDiscriminatedOneOfSchema, _Utils { + type: "undiscriminated"; } export interface _Utils { @@ -21,7 +21,7 @@ export namespace OneOfSchema { export interface _Visitor<_Result> { discriminated: (value: FernOpenapiIr.DiscriminatedOneOfSchema) => _Result; - undisciminated: (value: FernOpenapiIr.UnDiscriminatedOneOfSchema) => _Result; + undiscriminated: (value: FernOpenapiIr.UnDiscriminatedOneOfSchema) => _Result; _other: (value: { type: string }) => _Result; } } @@ -40,12 +40,12 @@ export const OneOfSchema = { }; }, - undisciminated: (value: FernOpenapiIr.UnDiscriminatedOneOfSchema): FernOpenapiIr.OneOfSchema.Undisciminated => { + undiscriminated: (value: FernOpenapiIr.UnDiscriminatedOneOfSchema): FernOpenapiIr.OneOfSchema.Undiscriminated => { return { ...value, - type: "undisciminated", + type: "undiscriminated", _visit: function <_Result>( - this: FernOpenapiIr.OneOfSchema.Undisciminated, + this: FernOpenapiIr.OneOfSchema.Undiscriminated, visitor: FernOpenapiIr.OneOfSchema._Visitor<_Result>, ) { return FernOpenapiIr.OneOfSchema._visit(this, visitor); @@ -60,8 +60,8 @@ export const OneOfSchema = { switch (value.type) { case "discriminated": return visitor.discriminated(value); - case "undisciminated": - return visitor.undisciminated(value); + case "undiscriminated": + return visitor.undiscriminated(value); default: return visitor._other(value as any); } diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/parseIr/types/OneOfSchemaWithExample.ts b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/parseIr/types/OneOfSchemaWithExample.ts index a6c4cc4a2a5..74bb5a88658 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/parseIr/types/OneOfSchemaWithExample.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/api/resources/parseIr/types/OneOfSchemaWithExample.ts @@ -6,15 +6,15 @@ import * as FernOpenapiIr from "../../../index"; export type OneOfSchemaWithExample = | FernOpenapiIr.OneOfSchemaWithExample.Discriminated - | FernOpenapiIr.OneOfSchemaWithExample.Undisciminated; + | FernOpenapiIr.OneOfSchemaWithExample.Undiscriminated; export namespace OneOfSchemaWithExample { export interface Discriminated extends FernOpenapiIr.DiscriminatedOneOfSchemaWithExample, _Utils { type: "discriminated"; } - export interface Undisciminated extends FernOpenapiIr.UnDiscriminatedOneOfSchemaWithExample, _Utils { - type: "undisciminated"; + export interface Undiscriminated extends FernOpenapiIr.UnDiscriminatedOneOfSchemaWithExample, _Utils { + type: "undiscriminated"; } export interface _Utils { @@ -23,7 +23,7 @@ export namespace OneOfSchemaWithExample { export interface _Visitor<_Result> { discriminated: (value: FernOpenapiIr.DiscriminatedOneOfSchemaWithExample) => _Result; - undisciminated: (value: FernOpenapiIr.UnDiscriminatedOneOfSchemaWithExample) => _Result; + undiscriminated: (value: FernOpenapiIr.UnDiscriminatedOneOfSchemaWithExample) => _Result; _other: (value: { type: string }) => _Result; } } @@ -44,14 +44,14 @@ export const OneOfSchemaWithExample = { }; }, - undisciminated: ( + undiscriminated: ( value: FernOpenapiIr.UnDiscriminatedOneOfSchemaWithExample, - ): FernOpenapiIr.OneOfSchemaWithExample.Undisciminated => { + ): FernOpenapiIr.OneOfSchemaWithExample.Undiscriminated => { return { ...value, - type: "undisciminated", + type: "undiscriminated", _visit: function <_Result>( - this: FernOpenapiIr.OneOfSchemaWithExample.Undisciminated, + this: FernOpenapiIr.OneOfSchemaWithExample.Undiscriminated, visitor: FernOpenapiIr.OneOfSchemaWithExample._Visitor<_Result>, ) { return FernOpenapiIr.OneOfSchemaWithExample._visit(this, visitor); @@ -66,8 +66,8 @@ export const OneOfSchemaWithExample = { switch (value.type) { case "discriminated": return visitor.discriminated(value); - case "undisciminated": - return visitor.undisciminated(value); + case "undiscriminated": + return visitor.undiscriminated(value); default: return visitor._other(value as any); } diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/example/types/FullOneOfExample.ts b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/example/types/FullOneOfExample.ts index dc39a195ee6..099519cc5f8 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/example/types/FullOneOfExample.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/example/types/FullOneOfExample.ts @@ -18,7 +18,7 @@ export const FullOneOfExample: core.serialization.Schema< core.serialization.lazy(() => serializers.FullExample), ), }), - undisciminated: core.serialization.object({ + undiscriminated: core.serialization.object({ value: core.serialization.lazy(() => serializers.FullExample), }), }) @@ -27,8 +27,8 @@ export const FullOneOfExample: core.serialization.Schema< switch (value.type) { case "discriminated": return FernOpenapiIr.FullOneOfExample.discriminated(value.value); - case "undisciminated": - return FernOpenapiIr.FullOneOfExample.undisciminated(value.value); + case "undiscriminated": + return FernOpenapiIr.FullOneOfExample.undiscriminated(value.value); default: return value as FernOpenapiIr.FullOneOfExample; } @@ -37,15 +37,15 @@ export const FullOneOfExample: core.serialization.Schema< }); export declare namespace FullOneOfExample { - export type Raw = FullOneOfExample.Discriminated | FullOneOfExample.Undisciminated; + export type Raw = FullOneOfExample.Discriminated | FullOneOfExample.Undiscriminated; export interface Discriminated { type: "discriminated"; value: Record; } - export interface Undisciminated { - type: "undisciminated"; + export interface Undiscriminated { + type: "undiscriminated"; value: serializers.FullExample.Raw; } } diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/finalIr/types/OneOfSchema.ts b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/finalIr/types/OneOfSchema.ts index 01be0a0c3a6..cbf3f6be8bb 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/finalIr/types/OneOfSchema.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/sdk/serialization/resources/finalIr/types/OneOfSchema.ts @@ -10,15 +10,15 @@ export const OneOfSchema: core.serialization.Schema serializers.DiscriminatedOneOfSchema), - undisciminated: core.serialization.lazyObject(() => serializers.UnDiscriminatedOneOfSchema), + undiscriminated: core.serialization.lazyObject(() => serializers.UnDiscriminatedOneOfSchema), }) .transform({ transform: (value) => { switch (value.type) { case "discriminated": return FernOpenapiIr.OneOfSchema.discriminated(value); - case "undisciminated": - return FernOpenapiIr.OneOfSchema.undisciminated(value); + case "undiscriminated": + return FernOpenapiIr.OneOfSchema.undiscriminated(value); default: return value as FernOpenapiIr.OneOfSchema; } @@ -27,13 +27,13 @@ export const OneOfSchema: core.serialization.Schema = core.serialization .union("type", { discriminated: core.serialization.lazyObject(() => serializers.DiscriminatedOneOfSchemaWithExample), - undisciminated: core.serialization.lazyObject(() => serializers.UnDiscriminatedOneOfSchemaWithExample), + undiscriminated: core.serialization.lazyObject(() => serializers.UnDiscriminatedOneOfSchemaWithExample), }) .transform({ transform: (value) => { switch (value.type) { case "discriminated": return FernOpenapiIr.OneOfSchemaWithExample.discriminated(value); - case "undisciminated": - return FernOpenapiIr.OneOfSchemaWithExample.undisciminated(value); + case "undiscriminated": + return FernOpenapiIr.OneOfSchemaWithExample.undiscriminated(value); default: return value as FernOpenapiIr.OneOfSchemaWithExample; } @@ -29,13 +29,13 @@ export const OneOfSchemaWithExample: core.serialization.Schema< }); export declare namespace OneOfSchemaWithExample { - export type Raw = OneOfSchemaWithExample.Discriminated | OneOfSchemaWithExample.Undisciminated; + export type Raw = OneOfSchemaWithExample.Discriminated | OneOfSchemaWithExample.Undiscriminated; export interface Discriminated extends serializers.DiscriminatedOneOfSchemaWithExample.Raw { type: "discriminated"; } - export interface Undisciminated extends serializers.UnDiscriminatedOneOfSchemaWithExample.Raw { - type: "undisciminated"; + export interface Undiscriminated extends serializers.UnDiscriminatedOneOfSchemaWithExample.Raw { + type: "undiscriminated"; } } diff --git a/packages/cli/api-importers/openapi/openapi-ir/src/utils/isSchemaEqual.ts b/packages/cli/api-importers/openapi/openapi-ir/src/utils/isSchemaEqual.ts index ae99f46e2f7..6404f11613f 100644 --- a/packages/cli/api-importers/openapi/openapi-ir/src/utils/isSchemaEqual.ts +++ b/packages/cli/api-importers/openapi/openapi-ir/src/utils/isSchemaEqual.ts @@ -41,8 +41,8 @@ function isOneOfEqual(a: OneOfSchema, b: OneOfSchema): boolean { return ( a.discriminantProperty === b.discriminantProperty && Object.keys(a.schemas).length === Object.keys(b.schemas).length && - Object.entries(a.schemas).every(([discrminant, aSchema]) => { - const bSchema = b.schemas[discrminant]; + Object.entries(a.schemas).every(([discriminant, aSchema]) => { + const bSchema = b.schemas[discriminant]; if (bSchema == null) { return false; } @@ -50,7 +50,7 @@ function isOneOfEqual(a: OneOfSchema, b: OneOfSchema): boolean { }) ); } - if (a.type === "undisciminated" && b.type === "undisciminated") { + if (a.type === "undiscriminated" && b.type === "undiscriminated") { return ( a.schemas.length === b.schemas.length && a.schemas.every((aSchema, index) => { diff --git a/packages/cli/cli-migrations/src/migrations/0.0.221/add-error-discriminant/migration.ts b/packages/cli/cli-migrations/src/migrations/0.0.221/add-error-discriminant/migration.ts index 1431670fd70..c22848807f3 100644 --- a/packages/cli/cli-migrations/src/migrations/0.0.221/add-error-discriminant/migration.ts +++ b/packages/cli/cli-migrations/src/migrations/0.0.221/add-error-discriminant/migration.ts @@ -5,7 +5,7 @@ import { getAllRootApiYamlFiles } from "./getAllRootApiYamlFiles"; export const migration: Migration = { name: "add-error-discriminant", - summary: "Add error-discriminant to apiy.ml", + summary: "Add error-discriminant to api.yml", run: async ({ context }) => { const yamlFiles = await getAllRootApiYamlFiles(context); for (const filepath of yamlFiles) { diff --git a/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.ts b/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.ts index cea0bd8504f..0f8769ce39c 100644 --- a/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.ts +++ b/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.ts @@ -14,7 +14,7 @@ import { migrateDocsInstances } from "./migrateDocsInstances"; * fern/ <------ path to fern directory * api/ <------ path to workspace * definition/... - * generatiors.yml + * generators.yml * docs.yml * * This function migrates docs.yml and generators.yml to the new format, and then moves diff --git a/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.ts b/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.ts index d231beaa936..d5f266cf4d0 100644 --- a/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.ts +++ b/packages/cli/cli-migrations/src/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.ts @@ -13,7 +13,7 @@ import { * fern/ <------ path to fern directory * api/ <------ path to workspace * definition/... - * generatiors.yml + * generators.yml * * This function moves everything from the workspace directory into the fern directory. */ diff --git a/packages/cli/cli-migrations/src/migrations/0.3.23/change-services-key-to-service/migration.ts b/packages/cli/cli-migrations/src/migrations/0.3.23/change-services-key-to-service/migration.ts index 9c51bc42593..529785cf482 100644 --- a/packages/cli/cli-migrations/src/migrations/0.3.23/change-services-key-to-service/migration.ts +++ b/packages/cli/cli-migrations/src/migrations/0.3.23/change-services-key-to-service/migration.ts @@ -51,7 +51,7 @@ async function migrateYamlFile(filepath: AbsoluteFilePath, context: TaskContext) return; } if (remainingServices.length > 0) { - return context.failAndThrow("Tthere are multiple services defined"); + return context.failAndThrow("There are multiple services defined"); } pair.key.value = "service"; diff --git a/packages/cli/cli/src/cli-context/CliContext.ts b/packages/cli/cli/src/cli-context/CliContext.ts index f8ba5c95487..9440993c30b 100644 --- a/packages/cli/cli/src/cli-context/CliContext.ts +++ b/packages/cli/cli/src/cli-context/CliContext.ts @@ -101,7 +101,7 @@ export class CliContext { public async exit(): Promise { if (!this._suppressUpgradeMessage) { - await this.nudgeUpgradeIfAvaialable(); + await this.nudgeUpgradeIfAvailable(); } this.ttyAwareLogger.finish(); const posthogManager = await getPosthogManager(); @@ -109,7 +109,7 @@ export class CliContext { this.exitProgram(); } - private async nudgeUpgradeIfAvaialable() { + private async nudgeUpgradeIfAvailable() { try { const upgradeInfo = await Promise.race<[Promise, Promise]>([ this.isUpgradeAvailable(), diff --git a/packages/cli/cli/src/cliV2.ts b/packages/cli/cli/src/cliV2.ts index 6787bc3ae68..d19efa4361e 100644 --- a/packages/cli/cli/src/cliV2.ts +++ b/packages/cli/cli/src/cliV2.ts @@ -11,7 +11,7 @@ import { getProjectGeneratorUpgrades } from "./cli-context/upgrade-utils/getGene import { GlobalCliOptions, loadProjectAndRegisterWorkspacesWithContext } from "./cliCommons"; import { GenerationModeFilter, getGeneratorList } from "./commands/generator-list/getGeneratorList"; import { getGeneratorMetadata } from "./commands/generator-metadata/getGeneratorMetadata"; -import { getOrganziation } from "./commands/organization/getOrganization"; +import { getOrganization } from "./commands/organization/getOrganization"; import { upgradeGenerator } from "./commands/upgrade/upgradeGenerator"; export function addGetOrganizationCommand(cli: Argv, cliContext: CliContext): void { @@ -32,7 +32,7 @@ export function addGetOrganizationCommand(cli: Argv, cliContex outputLocation: argv.output } }); - await getOrganziation({ + await getOrganization({ project: await loadProjectAndRegisterWorkspacesWithContext(cliContext, { commandLineApiWorkspace: undefined, defaultToAllApiWorkspaces: true diff --git a/packages/cli/cli/src/commands/organization/getOrganization.ts b/packages/cli/cli/src/commands/organization/getOrganization.ts index 14c7e958c0e..f50a3b95ea1 100644 --- a/packages/cli/cli/src/commands/organization/getOrganization.ts +++ b/packages/cli/cli/src/commands/organization/getOrganization.ts @@ -4,7 +4,7 @@ import { Project } from "@fern-api/project-loader"; import { CliContext } from "../../cli-context/CliContext"; -export async function getOrganziation({ +export async function getOrganization({ project, outputLocation, context diff --git a/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts b/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts index 1c0b09cbb85..c5fcacb211f 100644 --- a/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts +++ b/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts @@ -124,7 +124,7 @@ async function writeFernDefinition({ yaml.dump(definition.rootApiFile.contents, { sortKeys }) ); - // write __package__.ymls + // write __package__.yml for (const [relativePath, packageMarker] of Object.entries(definition.packageMarkers)) { const absoluteFilepath = join(absolutePathToOutputDirectory, RelativeFilePath.of(relativePath)); await mkdir(dirname(absoluteFilepath), { recursive: true }); diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index cdc15362f24..1f2f764236c 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -8,7 +8,7 @@ - changelogEntry: - summary: | - Added better error messages when markdown files reference non-existent MDX files, showing the relative path + Added better error messages when markdown files reference non-existent MDX files, showing the relative path to the missing file rather than just indicating an invalid reference. type: fix irVersion: 55 @@ -23,7 +23,7 @@ - changelogEntry: - summary: | - Added a new rule to validate frontmatter parsing across markdown files, ensuring frontmatter + Added a new rule to validate frontmatter parsing across markdown files, ensuring frontmatter is properly formatted and can be parsed without errors. type: fix irVersion: 55 @@ -31,7 +31,7 @@ - changelogEntry: - summary: | - Various improvements to the Mintlify and Readme importers, including better default styling + Various improvements to the Mintlify and Readme importers, including better default styling and spec imports for Mintlify migrations. type: fix irVersion: 55 @@ -47,7 +47,7 @@ - changelogEntry: - summary: | - Improved error messages when docs.yml doesn't match schema by showing more specific + Improved error messages when docs.yml doesn't match schema by showing more specific validation errors and including the path where the error occurred. type: fix irVersion: 55 @@ -55,7 +55,7 @@ - changelogEntry: - summary: | - Fixed x-fern-resolutions to properly handle escaped forward slashes ("~1") in schema references, + Fixed x-fern-resolutions to properly handle escaped forward slashes ("~1") in schema references, correctly converting them to "/" when resolving references. type: fix irVersion: 55 @@ -76,7 +76,7 @@ - changelogEntry: - summary: | - Improve performance of `fern docs dev` by only reloading the markdown content when + Improve performance of `fern docs dev` by only reloading the markdown content when only markdown files are changed, avoiding unnecessary recompilation of the full docs. type: fix @@ -86,7 +86,7 @@ - changelogEntry: - summary: | - Improve performance of `fern docs dev` by debouncing across edits to multiple files, + Improve performance of `fern docs dev` by debouncing across edits to multiple files, reducing unnecessary recomputation. type: fix irVersion: 55 @@ -94,7 +94,7 @@ - changelogEntry: - summary: | - This PR improves the performance of `fern docs dev`: + This PR improves the performance of `fern docs dev`: - Fern does not generate examples if the user has provided them to us - Temporarily comment out broken link checker until we make it faster type: fix @@ -103,7 +103,7 @@ - changelogEntry: - summary: | - Move example generation failure logs to trace level since they are not relevant + Move example generation failure logs to trace level since they are not relevant for users and add noise to debug logs. type: fix irVersion: 55 @@ -111,7 +111,7 @@ - changelogEntry: - summary: | - Fixes a bug where duplicate types in undiscriminated unions (`oneOf` in OpenAPI) + Fixes a bug where duplicate types in undiscriminated unions (`oneOf` in OpenAPI) were not being deduped, which could lead to invalid generated code. type: fix irVersion: 55 @@ -126,21 +126,21 @@ - changelogEntry: - summary: | - Increase undici timeouts to make sure that `fern generate --docs` completes. + Increase undici timeouts to make sure that `fern generate --docs` completes. type: fix irVersion: 55 version: 0.50.12 - changelogEntry: - summary: | - The CLI now supports a `--log-level trace` option to filter out noise from the - debug log level. + The CLI now supports a `--log-level trace` option to filter out noise from the + debug log level. type: fix irVersion: 55 version: 0.50.11 - changelogEntry: - - summary: + - summary: An addition to the broken link checker to further reduce false positives. type: fix irVersion: 55 @@ -148,7 +148,7 @@ - changelogEntry: - summary: | - The Fern CLI no longer logs the full API request when finishing docs registration, + The Fern CLI no longer logs the full API request when finishing docs registration, reducing unnecessary log output. type: fix irVersion: 55 @@ -156,7 +156,7 @@ - changelogEntry: - summary: | - An additional fix to the OpenRPC parser for respecting tags when + An additional fix to the OpenRPC parser for respecting tags when organizing methods in the API Reference. type: fix irVersion: 55 @@ -164,7 +164,7 @@ - changelogEntry: - summary: | - The OpenRPC parser now respects method names as well as tags for + The OpenRPC parser now respects method names as well as tags for organization the navigation. type: fix irVersion: 55 @@ -172,7 +172,7 @@ - changelogEntry: - summary: | - The broken link checker is updated to reduce false positives. + The broken link checker is updated to reduce false positives. type: fix irVersion: 55 version: 0.50.6 @@ -189,15 +189,15 @@ - changelogEntry: - summary: | The preview server is updated such that local previews of both OpenRPC and OpenAPI (legacy parser) - are now possible. + are now possible. type: fix irVersion: 55 version: 0.50.4 - changelogEntry: - summary: | - The docs.yml now supports a separate configurtation for `feature-flags` which allows Fern to render - pieces of content depending on whether or not certain feature flags are enabled for particular user. + The docs.yml now supports a separate configuration for `feature-flags` which allows Fern to render + pieces of content depending on whether or not certain feature flags are enabled for particular user. This feature is in alpha stage; please contact support@buildwithfern.com to learn more! @@ -231,11 +231,11 @@ - changelogEntry: - summary: | - The docs now includes alpha support for parsing openrpc specs. To leverage this feature, - simply define an API section in your docs.yml and point at an openrpc spec. + The docs now includes alpha support for parsing openrpc specs. To leverage this feature, + simply define an API section in your docs.yml and point at an openrpc spec. ```yml docs.yml - navigation: + navigation: - api: API Reference openrpc: ``` @@ -270,7 +270,7 @@ - changelogEntry: - summary: | The OpenAPI importer now supports respecting nullable properties in schemas. When enabled, nullable properties will - be preserved in the gnerated SDK. By default (without this setting), nullable properties are treated as `optional`. + be preserved in the generated SDK. By default (without this setting), nullable properties are treated as `optional`. To enable this, configure the setting in your `generators.yml`: ```yml @@ -879,7 +879,7 @@ - changelogEntry: - summary: | - The Fern CLI now supports roles and viewers in your docs configuration, if you are on the enteprise plan for docs: + The Fern CLI now supports roles and viewers in your docs configuration, if you are on the enterprise plan for docs: ```yml docs.ym roles: @@ -1176,7 +1176,7 @@ - changelogEntry: - summary: | - The CLI now generates endpoint examples for undiscriminated unions that are recusive. + The CLI now generates endpoint examples for undiscriminated unions that are recursive. type: fix irVersion: 53 version: 0.45.0-rc2 @@ -1394,7 +1394,7 @@ - changelogEntry: - summary: | - The documentation resolver now approrpiately creates a unique identifier for changelog sections. Previously, if you had multiple + The documentation resolver now appropriately creates a unique identifier for changelog sections. Previously, if you had multiple changelogs within the same section, despite their title and slug being different, they would be treated as the same section since the ID only took into account the parents' slug, appended the word "changelog" and that was all. @@ -1512,7 +1512,7 @@ version: 0.42.6 - changelogEntry: - - summary: Adds additional metadata retrievable by `fern generator get` so you can now get the langauage and the target repo. + - summary: Adds additional metadata retrievable by `fern generator get` so you can now get the language and the target repo. type: feat irVersion: 53 version: 0.42.5 @@ -1595,7 +1595,7 @@ specs: - openapi: openapi-bar.yml namespace: bar - - openapi: opneapi-foo.yml + - openapi: openapi-foo.yml namespace: foo ``` type: fix @@ -1663,7 +1663,7 @@ - summary: | Running `fern check` will now check to confirm that the generator versions you are running are compatible with your Fern CLI version. - Each version of SDK generators depends on a version of a libary that is exported by the Fern CLI, and as a result, each generator has a minimum + Each version of SDK generators depends on a version of a library that is exported by the Fern CLI, and as a result, each generator has a minimum compatible version of the Fern CLI. As an example, if you were to run `fern check` while leveraging `fernapi/fern-python-sdk` version `2.0.0`, on CLI version `0.1.3`, you'd receive the following error: `The generator fernapi/fern-python-sdk requires CLI version 0.23.0-rc4 or later (current version: 0.1.3-rc0).` @@ -2107,7 +2107,7 @@ version: 0.39.16 - changelogEntry: - - summary: Introduce `generator list` and `organization` commands to faciliate actions taken by `fern-bot` + - summary: Introduce `generator list` and `organization` commands to facilitate actions taken by `fern-bot` type: internal createdAt: "2024-08-21" irVersion: 53 @@ -2868,7 +2868,7 @@ \n* fix: (regression) parseDocsConfiguration accidentally calls loadAllPages\ \ with absolutePathToDocsConfig by @abvthecity in https://github.com/fern-api/fern/pull/4026\r\ \n* (feature, typescript): Add offset step pagination with IRv48 by @amckinney\ - \ in https://github.com/fern-api/fern/pull/4028\r\n* csharp, fix, feature, improvment:\ + \ in https://github.com/fern-api/fern/pull/4028\r\n* csharp, fix, feature, improvement:\ \ Target .NET Standard + Framework, fix various bugs, many small improvements\ \ by @dcb6 in https://github.com/fern-api/fern/pull/4030\r\n* fix: update unchecked\ \ base model to not coerce none by @armandobelardo in https://github.com/fern-api/fern/pull/4029\r\ @@ -2956,7 +2956,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (chore): Replace CircleCI with GitHub workflows\ \ by @amckinney in https://github.com/fern-api/fern/pull/3991\r\n* (fix): Update\ - \ NPM token envrionment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ + \ NPM token environment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ \n* (fix): Update git-version.sh script by @amckinney in https://github.com/fern-api/fern/pull/3993\r\ \n* (fix): Use github.ref_name by @amckinney in https://github.com/fern-api/fern/pull/3996\r\ \n* (fix): Add POSTHOG_API_KEY to live-test job by @amckinney in https://github.com/fern-api/fern/pull/3998\r\ @@ -2984,7 +2984,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (chore): Replace CircleCI with GitHub workflows\ \ by @amckinney in https://github.com/fern-api/fern/pull/3991\r\n* (fix): Update\ - \ NPM token envrionment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ + \ NPM token environment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ \n* (fix): Update git-version.sh script by @amckinney in https://github.com/fern-api/fern/pull/3993\r\ \n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.15...0.31.17-rc0" type: chore @@ -3012,7 +3012,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (fix, go): Don't send 'null' for nil request\ \ body by @amckinney in https://github.com/fern-api/fern/pull/3987\r\n* (fix):\ - \ fern generate --preview doesnt check for env variables by @dsinghvi in https://github.com/fern-api/fern/pull/3988\r\ + \ fern generate --preview doesn't check for env variables by @dsinghvi in https://github.com/fern-api/fern/pull/3988\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.13...0.31.14" type: chore createdAt: "2024-07-04" @@ -3052,7 +3052,7 @@ \n* fix: python pagination helper types now share generic type by @armandobelardo\ \ in https://github.com/fern-api/fern/pull/3973\r\n* chore: update python seed\ \ after generator-cli update by @armandobelardo in https://github.com/fern-api/fern/pull/3974\r\ - \n* (charp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6\ + \n* (csharp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6\ \ in https://github.com/fern-api/fern/pull/3975\r\n* (java, improvement): change\ \ default `JsonInclude` behavior by @dcb6 in https://github.com/fern-api/fern/pull/3978\r\ \n* (csharp, fix): base client requests not generated by @dcb6 in https://github.com/fern-api/fern/pull/3976\r\ @@ -3136,7 +3136,7 @@ version: 0.31.4 - changelogEntry: - summary: "## What's Changed\r\n* fix: the python sdk sends additional properties\ - \ to the correct reques\u2026 by @armandobelardo in https://github.com/fern-api/fern/pull/3936\r\ + \ to the correct request\u2026 by @armandobelardo in https://github.com/fern-api/fern/pull/3936\r\ \n* java, improvement: improve java exception naming by @dcb6 in https://github.com/fern-api/fern/pull/3938\r\ \n* Bump golang.org/x/tools from 0.21.0 to 0.22.0 in /generators/go by @dependabot\ \ in https://github.com/fern-api/fern/pull/3823\r\n* (fix): make sure that `exclusiveMaximum`\ @@ -3197,8 +3197,8 @@ - summary: "## What's Changed\r\n* (feat, IR): support streaming code generation\ \ with the parameter by @dsinghvi in https://github.com/fern-api/fern/pull/3914\r\ \n* (feat): update frontmatter docs by @chdeskur in https://github.com/fern-api/fern/pull/3916\r\ - \n* (fix, cli): examples dont print out where the missing property is by @dsinghvi\ - \ in https://github.com/fern-api/fern/pull/3919\r\n* (fix): dont error if required\ + \n* (fix, cli): examples don't print out where the missing property is by @dsinghvi\ + \ in https://github.com/fern-api/fern/pull/3919\r\n* (fix): don't error if required\ \ literal parameters are unspecified by @dsinghvi in https://github.com/fern-api/fern/pull/3921\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.0-rc3...0.31.0-rc4" type: chore @@ -3728,7 +3728,7 @@ \n* docs changed trivial anchor text by @atwooddc in https://github.com/fern-api/fern/pull/3687\r\ \n* docs: unbolded sections for seo by @atwooddc in https://github.com/fern-api/fern/pull/3686\r\ \n* docs: api definition docs and mdx descriptions for seo by @atwooddc in https://github.com/fern-api/fern/pull/3685\r\ - \n* (fix, csharp): scan `EnumMember` annotations when serializaing to string\ + \n* (fix, csharp): scan `EnumMember` annotations when serializing to string\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/3688\r\n* fix, python:\ \ request bodies respect literals again by @armandobelardo in https://github.com/fern-api/fern/pull/3689\r\ \n* (fix, python): support endpoint method names by @dsinghvi in https://github.com/fern-api/fern/pull/3690\r\ @@ -3767,7 +3767,7 @@ - summary: "## What's Changed\r\n* (feature): Add support for default values and\ \ validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640\r\ \n* improvement: add in config to enrich pypi metadata by @armandobelardo in\ - \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, chsarp): `.csproj` generation\ + \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, csharp): `.csproj` generation\ \ includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659\r\ \n* feat: allow users to configure pypi details by @armandobelardo in https://github.com/fern-api/fern/pull/3662\r\ \n* (fix, python): include project URLs in generated pyproject toml by @armandobelardo\ @@ -3788,7 +3788,7 @@ - summary: "## What's Changed\r\n* (feature): Add support for default values and\ \ validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640\r\ \n* improvement: add in config to enrich pypi metadata by @armandobelardo in\ - \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, chsarp): `.csproj` generation\ + \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, csharp): `.csproj` generation\ \ includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.27.0...0.27.1-rc0" type: chore @@ -4048,7 +4048,7 @@ \ configuration to the express generator by @dsinghvi in https://github.com/fern-api/fern/pull/3560\r\ \n* (fix) [wip] java empty response body instead of null by @dcb6 in https://github.com/fern-api/fern/pull/3545\r\ \n* Document new `background` prop for `Frame` component by @KenzoBenzo in https://github.com/fern-api/fern/pull/3559\r\ - \n* (improvment, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563\r\ + \n* (improvement, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563\r\ \n* (docs) consolidate code snippets and code block markdown pages by @abvthecity\ \ in https://github.com/fern-api/fern/pull/3562\r\n* fix: deduplicate image\ \ filepaths to upload by @abvthecity in https://github.com/fern-api/fern/pull/3564\r\ @@ -4168,7 +4168,7 @@ \n* (internal, test): Stop testing IR generation snapshots by @dsinghvi in https://github.com/fern-api/fern/pull/3508\r\ \n* fix, python: pipe through the whole kit and caboodle for inlined unions\ \ by @armandobelardo in https://github.com/fern-api/fern/pull/3507\r\n* fix,\ - \ python: the SDK generator now generates disciminated unions correctlly by\ + \ python: the SDK generator now generates discriminated unions correctly by\ \ @armandobelardo in https://github.com/fern-api/fern/pull/3509\r\n* internal:\ \ release python generator RC by @armandobelardo in https://github.com/fern-api/fern/pull/3510\r\ \n* fix, ts, python: snippet template paper cuts by @armandobelardo in https://github.com/fern-api/fern/pull/3511\r\ @@ -4237,7 +4237,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* improvement: throw a better error when an invalid\ \ version is used by @armandobelardo in https://github.com/fern-api/fern/pull/3477\r\ - \n* (fix, go): Discrimninated unions always include discriminant by @amckinney\ + \n* (fix, go): Discriminated unions always include discriminant by @amckinney\ \ in https://github.com/fern-api/fern/pull/3479\r\n* (internal, feat): add \ \ mode to seed for running the generators directly from source by @dsinghvi\ \ in https://github.com/fern-api/fern/pull/3421\r\n* (fix, docs): improve docs\ @@ -4247,7 +4247,7 @@ \ in https://github.com/fern-api/fern/pull/3482\r\n* (chore): parse file upload\ \ and their descriptions by @dsinghvi in https://github.com/fern-api/fern/pull/3485\r\ \n* (feature, go): Add cursor and offset pagination by @amckinney in https://github.com/fern-api/fern/pull/3486\r\ - \n* (fix): redo docs for accordion, accorodion groups, callouts, card groups,\ + \n* (fix): redo docs for accordion, accordion groups, callouts, card groups,\ \ etc. by @dsinghvi in https://github.com/fern-api/fern/pull/3489\r\n* (fix,\ \ docs): document frames and endpoint req/res snippets by @dsinghvi in https://github.com/fern-api/fern/pull/3490\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.23.1...0.23.2" @@ -5019,7 +5019,7 @@ \ query params correctly in the TypeScript SDK by @dsinghvi in https://github.com/fern-api/fern/pull/3071\r\ \n* fix, ruby: Ensure the name passed into the `X-Fern-SDK-Name` header is the\ \ name of the gem, not the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073\r\ - \n* (fix, typescript): sdk code snippets dont render empty dicts for parameters\ + \n* (fix, typescript): sdk code snippets don't render empty dicts for parameters\ \ with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074\r\ \n* (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072\r\ \n* (chore, internal): move `docs-config` to use local typescript sdk gen by\ @@ -5137,7 +5137,7 @@ \ in https://github.com/fern-api/fern/pull/3071\r\n* (fix, ruby): Ensure the\ \ name passed into the `X-Fern-SDK-Name` header is the name of the gem, not\ \ the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073\r\ - \n* (fix, typescript): sdk code snippets dont render empty dicts for parameters\ + \n* (fix, typescript): sdk code snippets don't render empty dicts for parameters\ \ with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074\r\ \n* (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072\r\ \n* (chore, internal): move `docs-config` to use local typescript sdk gen by\ @@ -5463,7 +5463,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (feature): OpenAPI importer supports format `json-string`\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/2827\r\n ```yaml\r\n\ - \ MySchema: \r\n type: striing\r\n format: json-string # <---- OpenAPI\ + \ MySchema: \r\n type: string\r\n format: json-string # <---- OpenAPI\ \ importer handles this\r\n ```\r\n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.16.40...0.16.41" type: chore createdAt: "2024-01-29" @@ -5482,7 +5482,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (release): support scanning env variable for\ \ auth in python sdk generator 0.8.1 by @dsinghvi in https://github.com/fern-api/fern/pull/2811\r\ - \n* (feature): introduce nuget ouptut location by @dsinghvi in https://github.com/fern-api/fern/pull/2812\r\ + \n* (feature): introduce nuget output location by @dsinghvi in https://github.com/fern-api/fern/pull/2812\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.16.38...0.16.39" type: chore createdAt: "2024-01-26" @@ -5904,7 +5904,7 @@ irVersion: 32 version: 0.15.13 - changelogEntry: - - summary: "## What's Changed\r\n* internal: seed supports configurable ouptut mode\ + - summary: "## What's Changed\r\n* internal: seed supports configurable output mode\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/2430\r\n* internal:\ \ add examples to literal-headers test definition by @amckinney in https://github.com/fern-api/fern/pull/2437\r\ \n* internal: seed fixtures are dynamic by @amckinney in https://github.com/fern-api/fern/pull/2440\r\ @@ -6133,7 +6133,7 @@ irVersion: 30 version: 0.15.0-rc81 - changelogEntry: - - summary: "## What's Changed\r\n* fix: dont compare root api files if dependency\ + - summary: "## What's Changed\r\n* fix: don't compare root api files if dependency\ \ has no endpoints by @dsinghvi in https://github.com/fern-api/fern/pull/2282\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.15.0-rc79...0.15.0-rc80" type: chore @@ -6488,7 +6488,7 @@ irVersion: 26 version: 0.15.0-rc22 - changelogEntry: - - summary: "- Only set GA availablity if explicitly defined in the API Definition + - summary: "- Only set GA availability if explicitly defined in the API Definition (@dsinghvi) " type: chore createdAt: "2023-09-17" @@ -8357,7 +8357,7 @@ version: 0.5.1 - changelogEntry: - summary: "## What's Changed\r\n* Support http streams in responses by @zachkirsch\ - \ in https://github.com/fern-api/fern/pull/1365\r\n* fix: introduce undiscrminated\ + \ in https://github.com/fern-api/fern/pull/1365\r\n* fix: introduce undiscriminated\ \ unions by @dsinghvi in https://github.com/fern-api/fern/pull/1367\r\n* Add\ \ release blocker for undiscriminated unions by @zachkirsch in https://github.com/fern-api/fern/pull/1369\r\ \n* Fix undiscriminated union rule by @zachkirsch in https://github.com/fern-api/fern/pull/1370\r\ diff --git a/packages/cli/configuration-loader/src/generators-yml/getGeneratorVersions.ts b/packages/cli/configuration-loader/src/generators-yml/getGeneratorVersions.ts index 7118f71c103..f317855083f 100644 --- a/packages/cli/configuration-loader/src/generators-yml/getGeneratorVersions.ts +++ b/packages/cli/configuration-loader/src/generators-yml/getGeneratorVersions.ts @@ -49,7 +49,7 @@ export async function getLatestGeneratorVersion({ } // HACK: Since none of the image names are really standardized, we need to manually map them to the language and generator type -// This should be removed in CLI v2, where langauge and type are codified within the config directly, without a docker image name +// This should be removed in CLI v2, where language and type are codified within the config directly, without a docker image name // // Ideally we just do a lookup that's sdk type and language, but we need to do this for now, but we're looking to keep our options // open when it comes to handling generators by some ID (and don't necessarily want to disallow multiple generators of the same type in the same language) diff --git a/packages/cli/configuration/src/constants.ts b/packages/cli/configuration/src/constants.ts index 9a2e3d36ea6..07a72884a7b 100644 --- a/packages/cli/configuration/src/constants.ts +++ b/packages/cli/configuration/src/constants.ts @@ -11,7 +11,7 @@ export const GENERATORS_CONFIGURATION_FILENAME = "generators.yml"; export const DEPENDENCIES_CONFIGURATION_FILENAME = "dependencies.yml"; export const DOCS_CONFIGURATION_FILENAME = "docs.yml"; export const PROJECT_CONFIG_FILENAME = "fern.config.json"; -export const DEFAULT_API_WORSPACE_FOLDER_NAME = "api"; +export const DEFAULT_API_WORKSPACE_FOLDER_NAME = "api"; export const FERNIGNORE_FILENAME = ".fernignore"; export const SNIPPET_JSON_FILENAME = "snippet.json"; export const SNIPPET_TEMPLATES_JSON_FILENAME = "snippet-templates.json"; diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FeatureFlagConfiguration.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FeatureFlagConfiguration.ts index 3c3bd639e11..31682cd8a9b 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FeatureFlagConfiguration.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FeatureFlagConfiguration.ts @@ -12,5 +12,5 @@ export type FeatureFlagConfiguration = * A single feature flag with a configurable name, fallback value, and match value. Especially useful for non boolean feature flags. */ | FernDocsConfig.FeatureFlag /** - * A list of feature flags. If any of the feature flags are satisifed, we will show all content. */ + * A list of feature flags. If any of the feature flags are satisfied, we will show all content. */ | FernDocsConfig.FeatureFlag[]; diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FontConfig.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FontConfig.ts index ac898c7cd39..568e9ca3e45 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FontConfig.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/FontConfig.ts @@ -7,7 +7,7 @@ import * as FernDocsConfig from "../../../index"; export interface FontConfig { /** If the `name` is not supplied, Fern will default it to a generated name that will be used to reference your custom font in the eventually injected CSS in the docs. */ name?: string; - /** The relative path of the font file. To define multiple weight and style varations of the same font, use `paths` instead. */ + /** The relative path of the font file. To define multiple weight and style variations of the same font, use `paths` instead. */ path?: string; /** @default: `100 900`. */ weight?: FernDocsConfig.FontWeight; diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/NavigationConfig.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/NavigationConfig.ts index ed08acd4441..a87bb009e31 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/NavigationConfig.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/NavigationConfig.ts @@ -4,4 +4,4 @@ import * as FernDocsConfig from "../../../index"; -export type NavigationConfig = FernDocsConfig.UntabbedNavigationConifg | FernDocsConfig.TabbedNavigationConfig; +export type NavigationConfig = FernDocsConfig.UntabbedNavigationConfig | FernDocsConfig.TabbedNavigationConfig; diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/UntabbedNavigationConifg.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/UntabbedNavigationConfig.ts similarity index 67% rename from packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/UntabbedNavigationConifg.ts rename to packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/UntabbedNavigationConfig.ts index 371210b4151..f1aad869bfe 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/UntabbedNavigationConifg.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/UntabbedNavigationConfig.ts @@ -4,4 +4,4 @@ import * as FernDocsConfig from "../../../index"; -export type UntabbedNavigationConifg = FernDocsConfig.NavigationItem[]; +export type UntabbedNavigationConfig = FernDocsConfig.NavigationItem[]; diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/index.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/index.ts index 6c1ad66ba88..06cf31e3670 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/index.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/api/resources/docs/types/index.ts @@ -18,7 +18,7 @@ export * from "./VersionConfig"; export * from "./VersionAvailability"; export * from "./VersionFileConfig"; export * from "./NavigationConfig"; -export * from "./UntabbedNavigationConifg"; +export * from "./UntabbedNavigationConfig"; export * from "./TabbedNavigationConfig"; export * from "./TabbedNavigationItem"; export * from "./NavigationItem"; diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/NavigationConfig.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/NavigationConfig.ts index d86f5787d0f..9ed182fd023 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/NavigationConfig.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/NavigationConfig.ts @@ -5,15 +5,15 @@ import * as serializers from "../../../index"; import * as FernDocsConfig from "../../../../api/index"; import * as core from "../../../../core"; -import { UntabbedNavigationConifg } from "./UntabbedNavigationConifg"; +import { UntabbedNavigationConfig } from "./UntabbedNavigationConfig"; import { TabbedNavigationConfig } from "./TabbedNavigationConfig"; import { TabbedNavigationItem } from "./TabbedNavigationItem"; export const NavigationConfig: core.serialization.Schema< serializers.NavigationConfig.Raw, FernDocsConfig.NavigationConfig -> = core.serialization.undiscriminatedUnion([UntabbedNavigationConifg, TabbedNavigationConfig]); +> = core.serialization.undiscriminatedUnion([UntabbedNavigationConfig, TabbedNavigationConfig]); export declare namespace NavigationConfig { - export type Raw = UntabbedNavigationConifg.Raw | TabbedNavigationConfig.Raw; + export type Raw = UntabbedNavigationConfig.Raw | TabbedNavigationConfig.Raw; } diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/UntabbedNavigationConifg.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/UntabbedNavigationConfig.ts similarity index 64% rename from packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/UntabbedNavigationConifg.ts rename to packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/UntabbedNavigationConfig.ts index b58408b4df3..2ef08f9c053 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/UntabbedNavigationConifg.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/UntabbedNavigationConfig.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as FernDocsConfig from "../../../../api/index"; import * as core from "../../../../core"; -export const UntabbedNavigationConifg: core.serialization.Schema< - serializers.UntabbedNavigationConifg.Raw, - FernDocsConfig.UntabbedNavigationConifg +export const UntabbedNavigationConfig: core.serialization.Schema< + serializers.UntabbedNavigationConfig.Raw, + FernDocsConfig.UntabbedNavigationConfig > = core.serialization.list(core.serialization.lazy(() => serializers.NavigationItem)); -export declare namespace UntabbedNavigationConifg { +export declare namespace UntabbedNavigationConfig { export type Raw = serializers.NavigationItem.Raw[]; } diff --git a/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/index.ts b/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/index.ts index 6c1ad66ba88..06cf31e3670 100644 --- a/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/index.ts +++ b/packages/cli/configuration/src/docs-yml/schemas/sdk/serialization/resources/docs/types/index.ts @@ -18,7 +18,7 @@ export * from "./VersionConfig"; export * from "./VersionAvailability"; export * from "./VersionFileConfig"; export * from "./NavigationConfig"; -export * from "./UntabbedNavigationConifg"; +export * from "./UntabbedNavigationConfig"; export * from "./TabbedNavigationConfig"; export * from "./TabbedNavigationItem"; export * from "./NavigationItem"; diff --git a/packages/cli/docs-importers/readme/src/utils/network.ts b/packages/cli/docs-importers/readme/src/utils/network.ts index 38202effeda..6dcf9415420 100644 --- a/packages/cli/docs-importers/readme/src/utils/network.ts +++ b/packages/cli/docs-importers/readme/src/utils/network.ts @@ -90,7 +90,7 @@ export async function fetchPageHtml({ url, browser }: { url: string | URL; brows if (res) { return res; } - throw new Error("An unknown error occured."); + throw new Error("An unknown error occurred."); } catch (error) { throw new Error(`Error retrieving HTML for ${url.toString()}`); } diff --git a/packages/cli/docs-preview/src/downloadLocalDocsBundle.ts b/packages/cli/docs-preview/src/downloadLocalDocsBundle.ts index ccdd87e72e9..529f127310f 100644 --- a/packages/cli/docs-preview/src/downloadLocalDocsBundle.ts +++ b/packages/cli/docs-preview/src/downloadLocalDocsBundle.ts @@ -47,9 +47,9 @@ export function getPathToEtagFile(): AbsoluteFilePath { } export declare namespace DownloadLocalBundle { - type Result = SuccesResult | FailureResult; + type Result = SuccessResult | FailureResult; - interface SuccesResult { + interface SuccessResult { type: "success"; } diff --git a/packages/cli/docs-preview/src/previewDocs.ts b/packages/cli/docs-preview/src/previewDocs.ts index 78b073dc082..5e67973f34f 100644 --- a/packages/cli/docs-preview/src/previewDocs.ts +++ b/packages/cli/docs-preview/src/previewDocs.ts @@ -175,7 +175,7 @@ class ReferencedAPICollector { const err = e as Error; this.context.logger.debug(`Failed to read referenced API: ${err?.message} ${err?.stack}`); this.context.logger.error( - "An error occured while trying to read an API definition. Please reach out to support." + "An error occurred while trying to read an API definition. Please reach out to support." ); if (err.stack != null) { this.context.logger.error(err?.stack); @@ -203,7 +203,7 @@ class ReferencedAPICollectorV2 { const err = e as Error; this.context.logger.debug(`Failed to read referenced API: ${err?.message} ${err?.stack}`); this.context.logger.error( - "An error occured while trying to read an API definition. Please reach out to support." + "An error occurred while trying to read an API definition. Please reach out to support." ); if (err.stack != null) { this.context.logger.error(err?.stack); diff --git a/packages/cli/docs-preview/src/runPreviewServer.ts b/packages/cli/docs-preview/src/runPreviewServer.ts index 191e8e1c5eb..eb1b5526f87 100644 --- a/packages/cli/docs-preview/src/runPreviewServer.ts +++ b/packages/cli/docs-preview/src/runPreviewServer.ts @@ -259,7 +259,7 @@ export async function runPreviewServer({ context.logger.info(`Running server on http://localhost:${port}`); - // await infiinitely + // await infinitely // eslint-disable-next-line @typescript-eslint/no-empty-function await new Promise(() => {}); } diff --git a/packages/cli/docs-resolver/src/ChangelogNodeConverter.ts b/packages/cli/docs-resolver/src/ChangelogNodeConverter.ts index 72a663d34c0..2819fcbd971 100644 --- a/packages/cli/docs-resolver/src/ChangelogNodeConverter.ts +++ b/packages/cli/docs-resolver/src/ChangelogNodeConverter.ts @@ -52,8 +52,8 @@ export class ChangelogNodeConverter { } const changelogDate = extractDatetimeFromChangelogTitle(filename); if (changelogDate == null) { - const nameWihoutExtension = filename.split(".")[0]?.toLowerCase(); - if (nameWihoutExtension != null && RESERVED_OVERVIEW_PAGE_NAMES.includes(nameWihoutExtension)) { + const nameWithoutExtension = filename.split(".")[0]?.toLowerCase(); + if (nameWithoutExtension != null && RESERVED_OVERVIEW_PAGE_NAMES.includes(nameWithoutExtension)) { overviewPagePath = absoluteFilepath; } diff --git a/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dyanmic.test.ts.snap b/packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dynamic.test.ts.snap similarity index 100% rename from packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dyanmic.test.ts.snap rename to packages/cli/ete-tests/src/tests/dynamic/__snapshots__/dynamic.test.ts.snap diff --git a/packages/cli/ete-tests/src/tests/dynamic/dyanmic.test.ts b/packages/cli/ete-tests/src/tests/dynamic/dynamic.test.ts similarity index 100% rename from packages/cli/ete-tests/src/tests/dynamic/dyanmic.test.ts rename to packages/cli/ete-tests/src/tests/dynamic/dynamic.test.ts 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 1979982f215..54b1dd435b7 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 @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`help > no arguments 1`] = ` -"(node:20167) [DEP0040] DeprecationWarning: The \`punycode\` module is deprecated. Please use a userland alternative instead. +"(node:76082) [DEP0040] DeprecationWarning: The \`punycode\` module is deprecated. Please use a userland alternative instead. (Use \`node --trace-deprecation ...\` to show where the warning was created) fern-dev 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 e9931da8595..ca1f8412670 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 @@ -468,10 +468,10 @@ service: timestamp: docs: >- The timestamp in seconds for this group of events (included for - compatibility reasons). We recommend using the timestampms field + compatibility reasons). We recommend using the timestamps field instead. type: double - timestampms: + timestamps: docs: The timestamp in milliseconds for this group of events. type: double type: literal<"update"> @@ -1722,7 +1722,7 @@ errors: type: unknown InternalServerError: docs: | - This error is returned when an uncategorised internal server error occurs. + This error is returned when an uncategorized internal server error occurs. examples: - value: {} status-code: 500 @@ -2122,7 +2122,7 @@ errors: type: unknown InternalServerError: docs: | - This error is returned when an uncategorised internal server error occurs. + This error is returned when an uncategorized internal server error occurs. examples: - value: {} status-code: 500 diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v1/__package__.yml b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v1/__package__.yml index bb48974229c..b98c5a54779 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v1/__package__.yml +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v1/__package__.yml @@ -163,7 +163,7 @@ errors: type: unknown InternalServerError: docs: | - This error is returned when an uncategorised internal server error occurs. + This error is returned when an uncategorized internal server error occurs. examples: - value: {} status-code: 500 diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v2/__package__.yml b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v2/__package__.yml index 4fec77d8d61..dd39ffd8b3a 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v2/__package__.yml +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/.definition/v2/__package__.yml @@ -99,7 +99,7 @@ errors: type: unknown InternalServerError: docs: | - This error is returned when an uncategorised internal server error occurs. + This error is returned when an uncategorized internal server error occurs. examples: - value: {} status-code: 500 diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/openapi/errors/InternalServerError.yaml b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/openapi/errors/InternalServerError.yaml index c44264de91a..3b668c08154 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/openapi/errors/InternalServerError.yaml +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced-fleshedout/fern/openapi/errors/InternalServerError.yaml @@ -1,5 +1,5 @@ description: | - This error is returned when an uncategorised internal server error occurs. + This error is returned when an uncategorized internal server error occurs. content: application/json: schema: diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/.definition/stream/__package__.yml b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/.definition/stream/__package__.yml index 44cf48220df..4ae5d4372f6 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/.definition/stream/__package__.yml +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/.definition/stream/__package__.yml @@ -104,10 +104,10 @@ types: timestamp: docs: >- The timestamp in seconds for this group of events (included for - compatibility reasons). We recommend using the timestampms field + compatibility reasons). We recommend using the timestamps field instead. type: double - timestampms: + timestamps: docs: The timestamp in milliseconds for this group of events. type: double type: literal<"update"> diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/asyncapi/sample.yml b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/asyncapi/sample.yml index 7abcba98127..8b5c3229460 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/asyncapi/sample.yml +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/asyncapi/sample.yml @@ -175,7 +175,7 @@ components: type: update eventId: 36902233362 timestamp: 1619769673 - timestampms: 1619769673527 + timestamps: 1619769673527 socket_sequence: 661 events: - type: change @@ -222,9 +222,9 @@ components: type: number description: >- The timestamp in seconds for this group of events (included for - compatibility reasons). We recommend using the timestampms field + compatibility reasons). We recommend using the timestamps field instead. - timestampms: + timestamps: type: number description: The timestamp in milliseconds for this group of events. required: @@ -232,7 +232,7 @@ components: - eventId - events - timestamp - - timestampms + - timestamps - $ref: '#/components/schemas/default' default: type: object diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/oair.json b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/oair.json index bf43ff8713d..4c625c163bc 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/oair.json +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/fern/oair.json @@ -9854,7 +9854,7 @@ "market": { "type": "oneOf", "value": { - "type": "undisciminated", + "type": "undiscriminated", "schemas": [ { "type": "reference", @@ -10068,7 +10068,7 @@ "exclusiveMaximum": null, "multipleOf": null }, - "description": "The timestamp in seconds for this group of events (included for compatibility reasons). We recommend using the timestampms field instead.", + "description": "The timestamp in seconds for this group of events (included for compatibility reasons). We recommend using the timestamps field instead.", "generatedName": "UpdateTimestamp", "nameOverride": null, "groupName": [ @@ -10085,8 +10085,8 @@ }, { "conflict": {}, - "generatedName": "updateTimestampms", - "key": "timestampms", + "generatedName": "updateTimestamps", + "key": "timestamps", "schema": { "type": "primitive", "schema": { @@ -10099,7 +10099,7 @@ "multipleOf": null }, "description": "The timestamp in milliseconds for this group of events.", - "generatedName": "UpdateTimestampms", + "generatedName": "UpdateTimestamps", "nameOverride": null, "groupName": [ { diff --git a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/oair.json b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/oair.json index 9d15f0eac91..63be0e8fd47 100644 --- a/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/oair.json +++ b/packages/cli/ete-tests/src/tests/write-definition/fixtures/namespaced/oair.json @@ -9755,7 +9755,7 @@ "market": { "type": "oneOf", "value": { - "type": "undisciminated", + "type": "undiscriminated", "schemas": [ { "type": "reference", @@ -9969,7 +9969,7 @@ "exclusiveMaximum": null, "multipleOf": null }, - "description": "The timestamp in seconds for this group of events (included for compatibility reasons). We recommend using the timestampms field instead.", + "description": "The timestamp in seconds for this group of events (included for compatibility reasons). We recommend using the timestamps field instead.", "generatedName": "UpdateTimestamp", "nameOverride": null, "groupName": [ @@ -9986,8 +9986,8 @@ }, { "conflict": {}, - "generatedName": "updateTimestampms", - "key": "timestampms", + "generatedName": "updateTimestamps", + "key": "timestamps", "schema": { "type": "primitive", "schema": { @@ -10000,7 +10000,7 @@ "multipleOf": null }, "description": "The timestamp in milliseconds for this group of events.", - "generatedName": "UpdateTimestampms", + "generatedName": "UpdateTimestamps", "nameOverride": null, "groupName": [ { diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/unions/type_types_UnionWithOptionalTime.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/unions/type_types_UnionWithOptionalTime.json index b826b4b5dbe..1ca9205187c 100644 --- a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/unions/type_types_UnionWithOptionalTime.json +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/unions/type_types_UnionWithOptionalTime.json @@ -5,7 +5,7 @@ "type": "string", "enum": [ "date", - "dateimte" + "datetime" ] } }, @@ -37,7 +37,7 @@ { "properties": { "type": { - "const": "dateimte" + "const": "datetime" }, "value": { "oneOf": [ diff --git a/packages/cli/fern-definition/schema/src/utils/isSseStreamResponseSchema.ts b/packages/cli/fern-definition/schema/src/utils/isSseStreamResponseSchema.ts index 6855fc66b54..7a28705f094 100644 --- a/packages/cli/fern-definition/schema/src/utils/isSseStreamResponseSchema.ts +++ b/packages/cli/fern-definition/schema/src/utils/isSseStreamResponseSchema.ts @@ -1,6 +1,6 @@ import { HttpEndpointSchema } from "../schemas"; -export function isSseStsreamResponseSchema(endpoint: HttpEndpointSchema): boolean { +export function isSseStreamResponseSchema(endpoint: HttpEndpointSchema): boolean { return ( endpoint["response-stream"] != null && typeof endpoint["response-stream"] !== "string" && diff --git a/packages/cli/fern-definition/schema/src/utils/visitExampleResponseSchema.ts b/packages/cli/fern-definition/schema/src/utils/visitExampleResponseSchema.ts index 42c68cbce38..3d4f14e88dd 100644 --- a/packages/cli/fern-definition/schema/src/utils/visitExampleResponseSchema.ts +++ b/packages/cli/fern-definition/schema/src/utils/visitExampleResponseSchema.ts @@ -6,7 +6,7 @@ import { ExampleStreamResponseSchema } from "../schemas"; import { isSimpleStreamResponseSchema } from "./isSimpleStreamResponseSchema"; -import { isSseStsreamResponseSchema } from "./isSseStreamResponseSchema"; +import { isSseStreamResponseSchema } from "./isSseStreamResponseSchema"; export interface ExampleResponseSchemaVisitor { body: (example: ExampleBodyResponseSchema) => T; @@ -39,5 +39,5 @@ export function isExampleSseResponseSchema( endpoint: HttpEndpointSchema, example: ExampleResponseSchema ): example is ExampleSseResponseSchema { - return (example as ExampleSseResponseSchema).stream !== undefined && isSseStsreamResponseSchema(endpoint); + return (example as ExampleSseResponseSchema).stream !== undefined && isSseStreamResponseSchema(endpoint); } diff --git a/packages/cli/fern-definition/validator/src/ast/visitors/services/visitHttpService.ts b/packages/cli/fern-definition/validator/src/ast/visitors/services/visitHttpService.ts index 64b04642bed..525b702005c 100644 --- a/packages/cli/fern-definition/validator/src/ast/visitors/services/visitHttpService.ts +++ b/packages/cli/fern-definition/validator/src/ast/visitors/services/visitHttpService.ts @@ -318,7 +318,7 @@ function visitExampleEndpointCall({ endpoint: RawSchemas.HttpEndpointSchema; example: RawSchemas.ExampleEndpointCallSchema; }): void { - // if an example is entirely empty and has code samples, dont validate against the + // if an example is entirely empty and has code samples, don't validate against the // request or response schemas if ( example.headers == null && diff --git a/packages/cli/fern-definition/validator/src/rules/no-undefined-error-reference/no-undefined-error-reference.ts b/packages/cli/fern-definition/validator/src/rules/no-undefined-error-reference/no-undefined-error-reference.ts index 54587e6796c..c52e94acf32 100644 --- a/packages/cli/fern-definition/validator/src/rules/no-undefined-error-reference/no-undefined-error-reference.ts +++ b/packages/cli/fern-definition/validator/src/rules/no-undefined-error-reference/no-undefined-error-reference.ts @@ -62,11 +62,11 @@ export const NoUndefinedErrorReferenceRule: Rule = { }; function getErrorsByFilepath(workspace: FernWorkspace) { - const erorrsByFilepath: Record> = {}; + const errorsByFilepath: Record> = {}; visitAllDefinitionFiles(workspace, (relativeFilepath, file) => { const errorsForFile = new Set(); - erorrsByFilepath[relativeFilepath] = errorsForFile; + errorsByFilepath[relativeFilepath] = errorsForFile; visitDefinitionFileYamlAst(file, { errorDeclaration: ({ errorName }) => { @@ -75,5 +75,5 @@ function getErrorsByFilepath(workspace: FernWorkspace) { }); }); - return erorrsByFilepath; + return errorsByFilepath; } diff --git a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/exhaustive.json b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/exhaustive.json index e0338fcd2cd..333a1e2598e 100644 --- a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/exhaustive.json +++ b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/exhaustive.json @@ -6436,25 +6436,25 @@ { "name": { "name": { - "originalName": "numer", + "originalName": "number", "camelCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "snakeCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "screamingSnakeCase": { - "unsafeName": "NUMER", - "safeName": "NUMER" + "unsafeName": "NUMBER", + "safeName": "NUMBER" }, "pascalCase": { - "unsafeName": "Numer", - "safeName": "Numer" + "unsafeName": "Number", + "safeName": "Number" } }, - "wireValue": "numer" + "wireValue": "number" }, "typeReference": { "type": "list", diff --git a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/file-upload.json b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/file-upload.json index ac259cbfc29..5646e45ee08 100644 --- a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/file-upload.json +++ b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/file-upload.json @@ -859,22 +859,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -1035,22 +1035,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/unions.json b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/unions.json index 76f7e5f3b62..32216a1d7b0 100644 --- a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/unions.json +++ b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/unions.json @@ -1467,7 +1467,7 @@ }, "properties": null }, - "dateimte": { + "datetime": { "type": "singleProperty", "typeReference": { "type": "optional", @@ -1478,25 +1478,25 @@ }, "discriminantValue": { "name": { - "originalName": "dateimte", + "originalName": "datetime", "camelCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "snakeCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "screamingSnakeCase": { - "unsafeName": "DATEIMTE", - "safeName": "DATEIMTE" + "unsafeName": "DATETIME", + "safeName": "DATETIME" }, "pascalCase": { - "unsafeName": "Dateimte", - "safeName": "Dateimte" + "unsafeName": "Datetime", + "safeName": "Datetime" } }, - "wireValue": "dateimte" + "wireValue": "datetime" }, "properties": null } diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/exhaustive.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/exhaustive.json index 5ae64617836..5ce130e4b7e 100644 --- a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/exhaustive.json +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/exhaustive.json @@ -53577,14 +53577,14 @@ { "name": { "name": { - "originalName": "numer", + "originalName": "number", "camelCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "snakeCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "screamingSnakeCase": { "unsafeName": "NUMER", @@ -53595,7 +53595,7 @@ "safeName": "Numer" } }, - "wireValue": "numer" + "wireValue": "number" }, "valueType": { "_type": "primitive", @@ -53737,14 +53737,14 @@ { "name": { "name": { - "originalName": "numer", + "originalName": "number", "camelCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "snakeCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "screamingSnakeCase": { "unsafeName": "NUMER", @@ -53755,7 +53755,7 @@ "safeName": "Numer" } }, - "wireValue": "numer" + "wireValue": "number" }, "shape": { "type": "exploded" @@ -72030,14 +72030,14 @@ { "name": { "name": { - "originalName": "numer", + "originalName": "number", "camelCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "snakeCase": { - "unsafeName": "numer", - "safeName": "numer" + "unsafeName": "number", + "safeName": "number" }, "screamingSnakeCase": { "unsafeName": "NUMER", @@ -72048,7 +72048,7 @@ "safeName": "Numer" } }, - "wireValue": "numer" + "wireValue": "number" }, "typeReference": { "_type": "list", diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/file-upload.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/file-upload.json index 1d40ee2c3a3..c185b50cd51 100644 --- a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/file-upload.json +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/file-upload.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/multi-line-docs.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/multi-line-docs.json index 5445f7bffcb..07532fdd2c4 100644 --- a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/multi-line-docs.json +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/multi-line-docs.json @@ -852,7 +852,7 @@ } }, "availability": null, - "docs": "The age of the user.\nThis propery is not required.\n" + "docs": "The age of the user.\nThis property is not required.\n" } ], "extra-properties": false, diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/pagination.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/pagination.json index ddb96be1ede..b1f8dfb92ab 100644 --- a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/pagination.json +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/pagination.json @@ -14274,7 +14274,7 @@ }, "allowMultiple": false, "availability": null, - "docs": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." + "docs": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." }, { "name": { @@ -16795,7 +16795,7 @@ }, "allowMultiple": false, "availability": null, - "docs": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." + "docs": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." }, "propertyPath": null }, @@ -16929,7 +16929,7 @@ }, "allowMultiple": false, "availability": null, - "docs": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." + "docs": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." }, { "name": { @@ -19450,7 +19450,7 @@ }, "allowMultiple": false, "availability": null, - "docs": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." + "docs": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint." }, "propertyPath": null }, diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/trace.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/trace.json index f98afe34752..d2a2fea9bbc 100644 --- a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/trace.json +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/trace.json @@ -36916,7 +36916,7 @@ } }, "availability": null, - "docs": "If present, use this to load subseqent pages.\nThe offset is the id of the next trace response to load." + "docs": "If present, use this to load subsequent pages.\nThe offset is the id of the next trace response to load." }, { "name": { @@ -37166,7 +37166,7 @@ } }, "availability": null, - "docs": "If present, use this to load subseqent pages.\nThe offset is the id of the next trace response to load." + "docs": "If present, use this to load subsequent pages.\nThe offset is the id of the next trace response to load." }, { "name": { diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/unions.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/unions.json index 566e027c85a..d5a56d355f6 100644 --- a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/unions.json +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/unions.json @@ -2513,25 +2513,25 @@ { "discriminantValue": { "name": { - "originalName": "dateimte", + "originalName": "datetime", "camelCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "snakeCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "screamingSnakeCase": { - "unsafeName": "DATEIMTE", - "safeName": "DATEIMTE" + "unsafeName": "DATETIME", + "safeName": "DATETIME" }, "pascalCase": { - "unsafeName": "Dateimte", - "safeName": "Dateimte" + "unsafeName": "Datetime", + "safeName": "Datetime" } }, - "wireValue": "dateimte" + "wireValue": "datetime" }, "shape": { "_type": "singleProperty", @@ -6328,7 +6328,7 @@ }, "properties": null }, - "dateimte": { + "datetime": { "type": "singleProperty", "typeReference": { "_type": "optional", @@ -6339,25 +6339,25 @@ }, "discriminantValue": { "name": { - "originalName": "dateimte", + "originalName": "datetime", "camelCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "snakeCase": { - "unsafeName": "dateimte", - "safeName": "dateimte" + "unsafeName": "datetime", + "safeName": "datetime" }, "screamingSnakeCase": { - "unsafeName": "DATEIMTE", - "safeName": "DATEIMTE" + "unsafeName": "DATETIME", + "safeName": "DATETIME" }, "pascalCase": { - "unsafeName": "Dateimte", - "safeName": "Dateimte" + "unsafeName": "Datetime", + "safeName": "Datetime" } }, - "wireValue": "dateimte" + "wireValue": "datetime" }, "properties": null } diff --git a/packages/cli/generation/ir-generator/src/casings/CasingsGenerator.ts b/packages/cli/generation/ir-generator/src/casings/CasingsGenerator.ts index ecf2973a57d..b55742da4e3 100644 --- a/packages/cli/generation/ir-generator/src/casings/CasingsGenerator.ts +++ b/packages/cli/generation/ir-generator/src/casings/CasingsGenerator.ts @@ -154,17 +154,17 @@ function hasAdjacentCommonInitialisms(wordList: string[]): boolean { } function maybeGetPluralInitialism(name: string): string | undefined { - return PLURAL_COMMON_ITIALISMS.get(name.toUpperCase()); + return PLURAL_COMMON_INITIALISMS.get(name.toUpperCase()); } function isCommonInitialism(name: string): boolean { - return COMMON_ITIALISMS.has(name.toUpperCase()); + return COMMON_INITIALISMS.has(name.toUpperCase()); } // For better casing conventions, define the set of common initialisms. // // Ref: https://github.com/golang/lint/blob/6edffad5e6160f5949cdefc81710b2706fbcd4f6/lint.go#L767C1-L809C2 -const COMMON_ITIALISMS = new Set([ +const COMMON_INITIALISMS = new Set([ "ACL", "API", "ASCII", @@ -211,7 +211,7 @@ const COMMON_ITIALISMS = new Set([ // A subset of the COMMON_INITIALISMS that require special handling. We want // the plural equivalent to be specified with a lowercase trailing 's', such // as 'APIs' and 'UUIDs'. -const PLURAL_COMMON_ITIALISMS = new Map([ +const PLURAL_COMMON_INITIALISMS = new Map([ ["ACLS", "ACLs"], ["APIS", "APIs"], ["CPUS", "CPUs"], 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 df8dd7b1434..2baa19a1adb 100644 --- a/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts +++ b/packages/cli/generation/ir-generator/src/converters/services/convertExampleEndpointCall.ts @@ -349,11 +349,11 @@ function convertExampleRequestBody({ const exampleProperties: ExampleInlinedRequestBodyProperty[] = []; for (const [wireKey, propertyExample] of Object.entries(example.request)) { const inlinedRequestPropertyDeclaration = requestType.properties?.[wireKey]; - const inilnedRequestPropertyType = + const inlinedRequestPropertyType = typeof inlinedRequestPropertyDeclaration === "string" ? inlinedRequestPropertyDeclaration : inlinedRequestPropertyDeclaration?.type; - if (inilnedRequestPropertyType != null && parseRawFileType(inilnedRequestPropertyType) != null) { + if (inlinedRequestPropertyType != null && parseRawFileType(inlinedRequestPropertyType) != null) { // HACK skip file properties continue; } @@ -585,7 +585,7 @@ function buildUrl({ } // urlJoin has some bugs where it may miss forward slash concatting https://github.com/jfromaniello/url-join/issues/42 url = url.replaceAll("//", "/"); - // for backwards compatiblity we always make sure that the url stats with a slash + // for backwards compatibility we always make sure that the url stats with a slash if (!url.startsWith("/")) { url = `/${url}`; } diff --git a/packages/cli/generation/ir-generator/src/converters/type-declarations/convertExampleType.ts b/packages/cli/generation/ir-generator/src/converters/type-declarations/convertExampleType.ts index 1e7b67302ea..a3ae3239fb1 100644 --- a/packages/cli/generation/ir-generator/src/converters/type-declarations/convertExampleType.ts +++ b/packages/cli/generation/ir-generator/src/converters/type-declarations/convertExampleType.ts @@ -524,7 +524,7 @@ function convertObject({ file: fileContainingType }); if (originalTypeDeclaration == null) { - // dont fail hard because it may be from `base-properties` + // don't fail hard because it may be from `base-properties` return exampleProperties; } diff --git a/packages/cli/generation/ir-generator/src/examples/validateObjectExample.ts b/packages/cli/generation/ir-generator/src/examples/validateObjectExample.ts index c2ea8a6d80e..6386c17a5ae 100644 --- a/packages/cli/generation/ir-generator/src/examples/validateObjectExample.ts +++ b/packages/cli/generation/ir-generator/src/examples/validateObjectExample.ts @@ -59,7 +59,7 @@ export function validateObjectExample({ (property) => !property.isOptional && property.resolvedPropertyType._type !== "unknown" ); for (const requiredProperty of requiredProperties) { - // dont error on literal properties + // don't error on literal properties if ( requiredProperty.resolvedPropertyType._type === "container" && requiredProperty.resolvedPropertyType.container._type === "literal" diff --git a/packages/cli/generation/ir-generator/src/filtered-ir/IrGraph.ts b/packages/cli/generation/ir-generator/src/filtered-ir/IrGraph.ts index 81ab74b7b04..48a6685e083 100644 --- a/packages/cli/generation/ir-generator/src/filtered-ir/IrGraph.ts +++ b/packages/cli/generation/ir-generator/src/filtered-ir/IrGraph.ts @@ -37,7 +37,7 @@ import { ErrorNode, InlinedRequestPropertiesNode, InlinedRequestQueryParametersNode, - InlinedWebhookPayloadProperiesNode, + InlinedWebhookPayloadPropertiesNode, ServiceId, SubpackageId, TypeId, @@ -52,7 +52,7 @@ export class IrGraph { private properties: Record = {}; private queryParameters: Record = {}; private requestProperties: Record = {}; - private webhookProperties: Record = {}; + private webhookProperties: Record = {}; private errors: Record = {}; private endpoints: Record = {}; private webhooks: Record = {}; diff --git a/packages/cli/generation/ir-generator/src/filtered-ir/ids.ts b/packages/cli/generation/ir-generator/src/filtered-ir/ids.ts index ed716498349..0664981dc55 100644 --- a/packages/cli/generation/ir-generator/src/filtered-ir/ids.ts +++ b/packages/cli/generation/ir-generator/src/filtered-ir/ids.ts @@ -41,7 +41,7 @@ export interface InlinedRequestHeadersNode { parametersByAudience: Record>; } -export interface InlinedWebhookPayloadProperiesNode { +export interface InlinedWebhookPayloadPropertiesNode { webhookId: WebhookId; /* If audience not present, keep all properties */ propertiesByAudience: Record>; diff --git a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts index cee155ccb8c..a480374bdee 100644 --- a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts +++ b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts @@ -206,7 +206,7 @@ export function generateIntermediateRepresentation({ } for (const [typeName, typeDeclaration] of Object.entries(types)) { - // Generic type declarations are syntatic sugar for + // Generic type declarations are syntactic sugar for // fern definition users, but not actually meant to be in the // generated SDKs if (isGeneric(typeName)) { diff --git a/packages/cli/generation/ir-migrations/src/IntermediateRepresentationMigrator.ts b/packages/cli/generation/ir-migrations/src/IntermediateRepresentationMigrator.ts index 8d5cafd6ffa..5444701e736 100644 --- a/packages/cli/generation/ir-migrations/src/IntermediateRepresentationMigrator.ts +++ b/packages/cli/generation/ir-migrations/src/IntermediateRepresentationMigrator.ts @@ -178,7 +178,7 @@ class IntermediateRepresentationMigratorImpl implements IntermediateRepresentati context: TaskContext; targetGenerator?: GeneratorNameAndVersion; }): MigratedIntermediateMigration { - let hasEncouneredMigrationYet = false; + let hasEncounteredMigrationYet = false; const versionIsLatest = this.migrations[0]?.laterVersion === version; if (versionIsLatest) { @@ -197,15 +197,15 @@ class IntermediateRepresentationMigratorImpl implements IntermediateRepresentati intermediateRepresentation, shouldMigrate: (nextMigration) => { const isEncounteringMigration = nextMigration.earlierVersion === version; - hasEncouneredMigrationYet ||= isEncounteringMigration; - return isEncounteringMigration || !hasEncouneredMigrationYet; + hasEncounteredMigrationYet ||= isEncounteringMigration; + return isEncounteringMigration || !hasEncounteredMigrationYet; }, context, targetGenerator }); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (!hasEncouneredMigrationYet) { + if (!hasEncounteredMigrationYet) { context.failAndThrow(`IR ${version} does not exist`); } diff --git a/packages/cli/generation/ir-migrations/src/migrations/v11-to-v10/__test__/migrateFromV11ToV10.test.ts b/packages/cli/generation/ir-migrations/src/migrations/v11-to-v10/__test__/migrateFromV11ToV10.test.ts index 7a80176d6fd..4f2524bb3f3 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v11-to-v10/__test__/migrateFromV11ToV10.test.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/v11-to-v10/__test__/migrateFromV11ToV10.test.ts @@ -8,7 +8,7 @@ import { V11_TO_V10_MIGRATION } from "../migrateFromV11ToV10"; const runMigration = createMigrationTester(V11_TO_V10_MIGRATION); describe("migrateFromV11ToV10", () => { - it("tranforms auth header correctly", async () => { + it("transforms auth header correctly", async () => { const migrated = await runMigration({ pathToFixture: join(AbsoluteFilePath.of(__dirname), RelativeFilePath.of("./fixtures/simple")) }); diff --git a/packages/cli/generation/ir-migrations/src/migrations/v25-to-v24/migrateFromV25ToV24.ts b/packages/cli/generation/ir-migrations/src/migrations/v25-to-v24/migrateFromV25ToV24.ts index b867ae6a322..565899cb990 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v25-to-v24/migrateFromV25ToV24.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/v25-to-v24/migrateFromV25ToV24.ts @@ -104,13 +104,13 @@ export const V25_TO_V24_MIGRATION: IrMigration< ); if (textHttpEndpoints.length === 1 && textHttpEndpoints[0] != null) { context.taskContext.logger.warn( - `Therefore, endpoint ${textHttpEndpoints[0].name.originalName} response type will be casted to unkown.` + `Therefore, endpoint ${textHttpEndpoints[0].name.originalName} response type will be casted to unknown.` ); } else { context.taskContext.logger.warn( `Therefore, endpoints ${textHttpEndpoints .map((endpoint) => endpoint.name.originalName) - .join(", ")} response types will be casted to unkown.` + .join(", ")} response types will be casted to unknown.` ); } } diff --git a/packages/cli/generation/ir-migrations/src/migrations/v3-to-v2/getReferencedTypesForInlinedRequest.ts b/packages/cli/generation/ir-migrations/src/migrations/v3-to-v2/getReferencedTypesForInlinedRequest.ts index c6bb2790aaf..a07153d1091 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v3-to-v2/getReferencedTypesForInlinedRequest.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/v3-to-v2/getReferencedTypesForInlinedRequest.ts @@ -61,7 +61,7 @@ function getReferencedTypesFromReference({ unknown: noop, void: noop, _unknown: () => { - throw new Error("Unknown TypeRefrence: " + reference._type); + throw new Error("Unknown TypeReference: " + reference._type); } }); } diff --git a/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/convertTypeReference.ts b/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/convertTypeReference.ts index 71b8d02bc94..9c3a0f7f28f 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/convertTypeReference.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/v5-to-v4/convertTypeReference.ts @@ -11,7 +11,7 @@ export function convertTypeReference( primitive: (primitive) => IrVersions.V4.types.TypeReference.primitive(primitive), unknown: IrVersions.V4.types.TypeReference.unknown, _unknown: () => { - throw new Error("Unkonwn TypeReference: " + typeReference._type); + throw new Error("Unknown TypeReference: " + typeReference._type); } }); } diff --git a/packages/cli/generation/ir-migrations/src/migrations/v8-to-v7/migrateFromV8ToV7.ts b/packages/cli/generation/ir-migrations/src/migrations/v8-to-v7/migrateFromV8ToV7.ts index 7017bbff44c..b285334d2e6 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v8-to-v7/migrateFromV8ToV7.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/v8-to-v7/migrateFromV8ToV7.ts @@ -236,7 +236,7 @@ function convertExampleTypeShape(example: IrVersions.V8.types.ExampleTypeShape): properties: convertExampleSingleUnionTypeProperties(union.properties) }), _unknown: () => { - throw new Error("Unkonwn ExampleTypeShape: " + example.type); + throw new Error("Unknown ExampleTypeShape: " + example.type); } }); } diff --git a/packages/cli/generation/local-generation/local-workspace-runner/src/LocalTaskHandler.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/LocalTaskHandler.ts index 39190b07446..5efa556da22 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/src/LocalTaskHandler.ts +++ b/packages/cli/generation/local-generation/local-workspace-runner/src/LocalTaskHandler.ts @@ -90,7 +90,7 @@ export class LocalTaskHandler { const absolutePathToFernignore = AbsoluteFilePath.of( join(this.absolutePathToLocalOutput, RelativeFilePath.of(FERNIGNORE_FILENAME)) ); - const fernIngnorePaths = await getFernIgnorePaths({ absolutePathToFernignore }); + const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore }); // Copy files from local output to tmp directory await cp(this.absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true }); @@ -113,7 +113,7 @@ export class LocalTaskHandler { await this.copyGeneratedFilesToDirectory(tmpOutputResolutionDir); // Undo changes to fernignore paths - await this.runGitCommand(["reset", "--", ...fernIngnorePaths], tmpOutputResolutionDir); + await this.runGitCommand(["reset", "--", ...fernIgnorePaths], tmpOutputResolutionDir); await this.runGitCommand(["restore", "."], tmpOutputResolutionDir); // Delete local output directory and copy all files from the generated directory diff --git a/packages/cli/generation/local-generation/local-workspace-runner/src/runLocalGenerationForSeed.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/runLocalGenerationForSeed.ts index 6976c847c24..37869af9bf9 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/src/runLocalGenerationForSeed.ts +++ b/packages/cli/generation/local-generation/local-workspace-runner/src/runLocalGenerationForSeed.ts @@ -59,7 +59,7 @@ export async function runLocalGenerationForSeed({ ) ) : undefined; - const absolutePathToResolvedSnipppetTemplates = generatorInvocation.absolutePathToLocalOutput + const absolutePathToResolvedSnippetTemplates = generatorInvocation.absolutePathToLocalOutput ? AbsoluteFilePath.of( join( generatorInvocation.absolutePathToLocalOutput, @@ -95,11 +95,11 @@ export async function runLocalGenerationForSeed({ }); if ( absolutePathToLocalSnippetTemplateJSON != null && - absolutePathToResolvedSnipppetTemplates != null + absolutePathToResolvedSnippetTemplates != null ) { await writeResolvedSnippetsJson({ absolutePathToLocalSnippetTemplateJSON, - absolutePathToResolvedSnipppetTemplates, + absolutePathToResolvedSnippetTemplates, ir, generatorInvocation }); @@ -135,12 +135,12 @@ export async function runLocalGenerationForSeed({ } export async function writeResolvedSnippetsJson({ - absolutePathToResolvedSnipppetTemplates, + absolutePathToResolvedSnippetTemplates, absolutePathToLocalSnippetTemplateJSON, ir, generatorInvocation }: { - absolutePathToResolvedSnipppetTemplates: AbsoluteFilePath; + absolutePathToResolvedSnippetTemplates: AbsoluteFilePath; absolutePathToLocalSnippetTemplateJSON: AbsoluteFilePath; ir: IntermediateRepresentation; generatorInvocation: generatorsYml.GeneratorInvocation; @@ -220,15 +220,15 @@ export async function writeResolvedSnippetsJson({ } catch (err) {} } } - let resovledMd = ""; + let resolvedMd = ""; for (const snippet of snippets) { - resovledMd += `\`\`\`${generatorInvocation.language} + resolvedMd += `\`\`\`${generatorInvocation.language} ${snippet} \`\`\` \n\n`; } - if (resovledMd.length > 0) { - await writeFile(absolutePathToResolvedSnipppetTemplates, resovledMd); + if (resolvedMd.length > 0) { + await writeFile(absolutePathToResolvedSnippetTemplates, resolvedMd); } } diff --git a/packages/cli/generation/remote-generation/remote-workspace-runner/src/RemoteTaskHandler.ts b/packages/cli/generation/remote-generation/remote-workspace-runner/src/RemoteTaskHandler.ts index 1b9978c53b5..78045e9bcee 100644 --- a/packages/cli/generation/remote-generation/remote-workspace-runner/src/RemoteTaskHandler.ts +++ b/packages/cli/generation/remote-generation/remote-workspace-runner/src/RemoteTaskHandler.ts @@ -55,7 +55,7 @@ export class RemoteTaskHandler { maven: (mavenPackage) => `${mavenPackage.group}:${mavenPackage.artifact}:${mavenPackage.version}`, pypi: (pypiPackage) => `${pypiPackage.name} ${pypiPackage.version}`, ruby: (rubyGem) => `${rubyGem.name}:${rubyGem.version}`, - nuget: (nugetPakcage) => `${nugetPakcage.name} ${nugetPakcage.version}`, + nuget: (nugetPackage) => `${nugetPackage.name} ${nugetPackage.version}`, _other: () => "" }); }); diff --git a/packages/cli/init/src/createFernDirectoryAndOrganization.ts b/packages/cli/init/src/createFernDirectoryAndOrganization.ts index ba3f280a61b..f59422421b5 100644 --- a/packages/cli/init/src/createFernDirectoryAndOrganization.ts +++ b/packages/cli/init/src/createFernDirectoryAndOrganization.ts @@ -45,7 +45,7 @@ export async function createFernDirectoryAndWorkspace({ if (response.ok) { organization = response.body.organizationId; } else { - taskContext.failAndThrow("Unathorized. FERN_TOKEN is invalid."); + taskContext.failAndThrow("Unauthorized. FERN_TOKEN is invalid."); // dummy return value to appease the linter. won't actually ever get run. return { absolutePathToFernDirectory: AbsoluteFilePath.of("/dummy"), organization: "dummy" }; } diff --git a/packages/cli/init/src/initializeAPI.ts b/packages/cli/init/src/initializeAPI.ts index 2261a483119..7282b75ba20 100644 --- a/packages/cli/init/src/initializeAPI.ts +++ b/packages/cli/init/src/initializeAPI.ts @@ -5,7 +5,7 @@ import path from "path"; import { APIS_DIRECTORY, - DEFAULT_API_WORSPACE_FOLDER_NAME, + DEFAULT_API_WORKSPACE_FOLDER_NAME, DEFINITION_DIRECTORY, GENERATORS_CONFIGURATION_FILENAME } from "@fern-api/configuration-loader"; @@ -63,11 +63,11 @@ async function getDirectoryOfNewAPIWorkspace({ absolutePathToFernDirectory, RelativeFilePath.of(APIS_DIRECTORY) ); - let newApiDirectory = join(pathToApisDirectory, RelativeFilePath.of(`${DEFAULT_API_WORSPACE_FOLDER_NAME}`)); + let newApiDirectory = join(pathToApisDirectory, RelativeFilePath.of(`${DEFAULT_API_WORKSPACE_FOLDER_NAME}`)); while (await doesPathExist(newApiDirectory)) { newApiDirectory = join( pathToApisDirectory, - RelativeFilePath.of(`${DEFAULT_API_WORSPACE_FOLDER_NAME}${++attemptCount}`) + RelativeFilePath.of(`${DEFAULT_API_WORKSPACE_FOLDER_NAME}${++attemptCount}`) ); } return newApiDirectory; diff --git a/packages/cli/mock/src/runMockServer.ts b/packages/cli/mock/src/runMockServer.ts index 3178dbd5b05..3e549ee24bd 100644 --- a/packages/cli/mock/src/runMockServer.ts +++ b/packages/cli/mock/src/runMockServer.ts @@ -136,7 +136,7 @@ export class MockServer { } public async keepAlive(): Promise { - // await infiinitely + // await infinitely // eslint-disable-next-line @typescript-eslint/no-empty-function await new Promise(() => {}); } diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json index c4fcc49119a..68d59780cc1 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/exhaustive.json @@ -2697,7 +2697,7 @@ } }, { - "key": "numer", + "key": "number", "type": { "type": "primitive", "value": { @@ -2714,7 +2714,7 @@ "pathParameters": {}, "queryParameters": { "query": "query", - "numer": 1 + "number": 1 }, "headers": {}, "responseStatusCode": 204, diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json index ac480c6143a..3e44cadfa17 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/file-upload.json @@ -236,7 +236,7 @@ "type": { "type": "fileUpload", "value": { - "name": "JustFileRequet", + "name": "JustFileRequest", "properties": [ { "type": "file", @@ -333,7 +333,7 @@ "type": { "type": "fileUpload", "value": { - "name": "JustFileWithQueryParamsRequet", + "name": "JustFileWithQueryParamsRequest", "properties": [ { "type": "file", diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json index ee645d7b090..d5047a00ee1 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/multi-line-docs.json @@ -163,7 +163,7 @@ } }, { - "description": "The age of the user.\nThis propery is not required.\n", + "description": "The age of the user.\nThis property is not required.\n", "key": "age", "valueType": { "type": "optional", diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json index 73d77ac3c40..fbfe6929cf1 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/pagination.json @@ -1232,7 +1232,7 @@ } }, { - "description": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + "description": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", "key": "limit", "type": { "type": "optional", @@ -1360,7 +1360,7 @@ } }, { - "description": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + "description": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", "key": "limit", "type": { "type": "optional", diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json index e17de2b9eb7..e525adcaaf0 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/trace.json @@ -4058,7 +4058,7 @@ "extends": [], "properties": [ { - "description": "If present, use this to load subseqent pages.\nThe offset is the id of the next trace response to load.", + "description": "If present, use this to load subsequent pages.\nThe offset is the id of the next trace response to load.", "key": "offset", "valueType": { "type": "optional", @@ -4090,7 +4090,7 @@ "extends": [], "properties": [ { - "description": "If present, use this to load subseqent pages.\nThe offset is the id of the next trace response to load.", + "description": "If present, use this to load subsequent pages.\nThe offset is the id of the next trace response to load.", "key": "offset", "valueType": { "type": "optional", diff --git a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json index acaa5a20ec0..75d1a534046 100644 --- a/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json +++ b/packages/cli/register/src/ir-to-fdr-converter/__test__/__snapshots__/unions.json @@ -380,7 +380,7 @@ } }, { - "discriminantValue": "dateimte", + "discriminantValue": "datetime", "additionalProperties": { "extends": [], "properties": [ diff --git a/packages/cli/workspace/loader/src/docs-yml.schema.json b/packages/cli/workspace/loader/src/docs-yml.schema.json index ca8aa3c8697..cca51272598 100644 --- a/packages/cli/workspace/loader/src/docs-yml.schema.json +++ b/packages/cli/workspace/loader/src/docs-yml.schema.json @@ -612,7 +612,7 @@ "items": { "$ref": "#/definitions/docs.FeatureFlag" }, - "description": "A list of feature flags. If any of the feature flags are satisifed, we will show all content." + "description": "A list of feature flags. If any of the feature flags are satisfied, we will show all content." } ] }, @@ -1835,7 +1835,7 @@ } ] }, - "docs.UntabbedNavigationConifg": { + "docs.UntabbedNavigationConfig": { "type": "array", "items": { "$ref": "#/definitions/docs.NavigationItem" @@ -1878,7 +1878,7 @@ "docs.NavigationConfig": { "anyOf": [ { - "$ref": "#/definitions/docs.UntabbedNavigationConifg" + "$ref": "#/definitions/docs.UntabbedNavigationConfig" }, { "$ref": "#/definitions/docs.TabbedNavigationConfig" diff --git a/packages/cli/workspace/loader/src/loadAPIWorkspace.ts b/packages/cli/workspace/loader/src/loadAPIWorkspace.ts index 3f244ffc4d9..4c7263499e9 100644 --- a/packages/cli/workspace/loader/src/loadAPIWorkspace.ts +++ b/packages/cli/workspace/loader/src/loadAPIWorkspace.ts @@ -76,7 +76,7 @@ export async function loadSingleNamespaceAPIWorkspace({ shouldUseUndiscriminatedUnionsWithLiterals: definition.settings?.shouldUseUndiscriminatedUnionsWithLiterals ?? false, optionalAdditionalProperties: definition.settings?.shouldUseOptionalAdditionalProperties ?? true, - cooerceEnumsToLiterals: definition.settings?.coerceEnumsToLiterals ?? true, + coerceEnumsToLiterals: definition.settings?.coerceEnumsToLiterals ?? true, objectQueryParameters: definition.settings?.objectQueryParameters ?? false, respectReadonlySchemas: definition.settings?.respectReadonlySchemas ?? false, respectNullableSchemas: definition.settings?.respectNullableSchemas ?? false, @@ -127,7 +127,7 @@ export async function loadSingleNamespaceAPIWorkspace({ shouldUseUndiscriminatedUnionsWithLiterals: definition.settings?.shouldUseUndiscriminatedUnionsWithLiterals ?? false, optionalAdditionalProperties: definition.settings?.shouldUseOptionalAdditionalProperties ?? true, - cooerceEnumsToLiterals: definition.settings?.coerceEnumsToLiterals ?? true, + coerceEnumsToLiterals: definition.settings?.coerceEnumsToLiterals ?? true, objectQueryParameters: definition.settings?.objectQueryParameters ?? false, respectReadonlySchemas: definition.settings?.respectReadonlySchemas ?? false, respectNullableSchemas: definition.settings?.respectNullableSchemas ?? false, diff --git a/packages/cli/yaml/docs-validator/src/docsAst/versions-yml.schema.json b/packages/cli/yaml/docs-validator/src/docsAst/versions-yml.schema.json index 97a8fbf0a26..e3682586898 100644 --- a/packages/cli/yaml/docs-validator/src/docsAst/versions-yml.schema.json +++ b/packages/cli/yaml/docs-validator/src/docsAst/versions-yml.schema.json @@ -110,7 +110,7 @@ "items": { "$ref": "#/definitions/docs.FeatureFlag" }, - "description": "A list of feature flags. If any of the feature flags are satisifed, we will show all content." + "description": "A list of feature flags. If any of the feature flags are satisfied, we will show all content." } ] }, @@ -1258,7 +1258,7 @@ } ] }, - "docs.UntabbedNavigationConifg": { + "docs.UntabbedNavigationConfig": { "type": "array", "items": { "$ref": "#/definitions/docs.NavigationItem" @@ -1301,7 +1301,7 @@ "docs.NavigationConfig": { "anyOf": [ { - "$ref": "#/definitions/docs.UntabbedNavigationConifg" + "$ref": "#/definitions/docs.UntabbedNavigationConfig" }, { "$ref": "#/definitions/docs.TabbedNavigationConfig" diff --git a/packages/cli/yaml/docs-validator/src/rules/playground-environments-exist/playground-environments-exist.ts b/packages/cli/yaml/docs-validator/src/rules/playground-environments-exist/playground-environments-exist.ts index 4a4a5039e45..903a2ede826 100644 --- a/packages/cli/yaml/docs-validator/src/rules/playground-environments-exist/playground-environments-exist.ts +++ b/packages/cli/yaml/docs-validator/src/rules/playground-environments-exist/playground-environments-exist.ts @@ -14,18 +14,18 @@ export const PlaygroundEnvironmentsExistRule: Rule = { return []; } - const nonExistentEnviromentIds = playgroundEnvironmentIds.filter((id) => !availableEnvironmentIds.has(id)); + const nonExistentEnvironmentIds = playgroundEnvironmentIds.filter((id) => !availableEnvironmentIds.has(id)); - if (nonExistentEnviromentIds.length === 0) { + if (nonExistentEnvironmentIds.length === 0) { return []; } - if (nonExistentEnviromentIds.length === 1) { + if (nonExistentEnvironmentIds.length === 1) { return [ { severity: "fatal", - message: `The API does not contain the ${nonExistentEnviromentIds[0]} environment. ${ - getExistingEnviromentIds(Array.from(availableEnvironmentIds)) ?? "" + message: `The API does not contain the ${nonExistentEnvironmentIds[0]} environment. ${ + getExistingEnvironmentIds(Array.from(availableEnvironmentIds)) ?? "" }` } ]; @@ -34,21 +34,21 @@ export const PlaygroundEnvironmentsExistRule: Rule = { return [ { severity: "fatal", - message: `The API does not contain the following enviroments: ${nonExistentEnviromentIds.join( + message: `The API does not contain the following environments: ${nonExistentEnvironmentIds.join( ", " - )}. ${getExistingEnviromentIds(Array.from(availableEnvironmentIds)) ?? ""}` + )}. ${getExistingEnvironmentIds(Array.from(availableEnvironmentIds)) ?? ""}` } ]; } }) }; -function getExistingEnviromentIds(availableEnvironmentIds: string[]): string | undefined { +function getExistingEnvironmentIds(availableEnvironmentIds: string[]): string | undefined { if (availableEnvironmentIds.length === 0) { return undefined; } if (availableEnvironmentIds.length === 1 && availableEnvironmentIds[0] != null) { return `The only configured environment is ${availableEnvironmentIds[0]}`; } - return `Existing enviroments include ${availableEnvironmentIds.join(", ")}.`; + return `Existing environments include ${availableEnvironmentIds.join(", ")}.`; } diff --git a/packages/cli/yaml/docs-validator/src/validateDocsWorkspace.ts b/packages/cli/yaml/docs-validator/src/validateDocsWorkspace.ts index 82bfed092ad..f79ef155143 100644 --- a/packages/cli/yaml/docs-validator/src/validateDocsWorkspace.ts +++ b/packages/cli/yaml/docs-validator/src/validateDocsWorkspace.ts @@ -20,7 +20,7 @@ export async function validateDocsWorkspace( onlyCheckBrokenLinks?: boolean ): Promise { // In the future we'll do something more sophisticated that lets you pick and choose which rules to run. - // For right now, the only use case is to check for broken links, so only expose a choise to run that rule. + // For right now, the only use case is to check for broken links, so only expose a choice to run that rule. const rules = onlyCheckBrokenLinks ? [ValidMarkdownLinks] : getAllRules(); return runRulesOnDocsWorkspace({ workspace, rules, context, fernWorkspaces, ossWorkspaces }); } diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md b/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md index d229db81af2..2cf9042fb66 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md +++ b/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md @@ -16,8 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [v54.0.0] - 2024-12-11 -- Break: The HttpResponse type in the IR now supports bytes responses. This is useful for different languages - - for example TypeScript can return an `ArrayBuffer` instead of `stream.Readable` in this case. +- Break: The HttpResponse type in the IR now supports bytes responses. This is useful for different languages - + for example TypeScript can return an `ArrayBuffer` instead of `stream.Readable` in this case. ## [v53.24.0] - 2024-11-04 @@ -32,7 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Redacted: Use v53.23.0 instead. - Internal: Add the `dynamic` property to the IR. This should be - made requried in IRv54. + made required in IRv54. ## [v53.21.0] - 2024-11-04 diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/commons.yml index 781c25fa1ce..cf75199277b 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/commons.yml @@ -40,7 +40,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml index 82b479d5863..f4dcc123712 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/endpoints.yml @@ -22,15 +22,15 @@ types: Request: docs: | - Reperesents the request parameters required to call a specific endpoiont. + Represents the request parameters required to call a specific endpoint. union: body: BodyRequest inlined: InlinedRequest - + Response: docs: | - Reperesents the response returned by a specific endpoint. - + Represents the response returned by a specific endpoint. + For now, we only support json responses, but this is set up to support a variety of other endpoint response types (e.g. file download, pagination, streaming, etc). @@ -41,7 +41,7 @@ types: properties: pathParameters: optional> body: optional - + InlinedRequest: properties: declaration: declaration.Declaration @@ -66,7 +66,7 @@ types: If true, the path parameters are the only parameters specified in the inlined request. - In combination with inludePathParameters, this influences whether or not the + In combination with includePathParameters, this influences whether or not the inlined request type should be generated at all. type: boolean @@ -75,7 +75,7 @@ types: properties: list referenced: ReferencedRequestBody fileUpload: FileUploadRequestBody - + ReferencedRequestBody: properties: bodyKey: commons.Name diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml index 7577bd975d5..297fd219344 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/dynamic/ir.yml @@ -15,7 +15,7 @@ types: properties: version: docs: | - The version of the dynamic IR. This is independent from the verison + The version of the dynamic IR. This is independent from the version of the primary IR. type: literal<"1.0.0"> types: map diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml index ef42039791a..5caf409bf8e 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml @@ -70,7 +70,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional @@ -83,10 +83,10 @@ types: with each feature. type: optional>> SourceConfig: - properties: + properties: sources: docs: The raw API definitions that produced the IR. - type: list + type: list ApiDefinitionSourceId: docs: | Uniquely identifies a specific API definition source. This allows us to clearly identify @@ -117,12 +117,12 @@ types: sdkName: string sdkVersion: string userAgent: optional - UserAgent: - properties: - header: + UserAgent: + properties: + header: type: literal<"User-Agent"> - docs: The user agent header for ease of access to generators. - value: + docs: The user agent header for ease of access to generators. + value: type: string docs: Formatted as "/" diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/types.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/types.yml index d2e7a87a923..caf9b483d14 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/types.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/types.yml @@ -162,7 +162,7 @@ types: NamedType: docs: | - A reference to a named type. For backwards compatbility, this type must be fully compatible + A reference to a named type. For backwards compatibility, this type must be fully compatible with the DeclaredTypeName. properties: typeId: commons.TypeId diff --git a/packages/ir-sdk/fern/apis/ir-types-v30/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v30/definition/commons.yml index 71c33c17a84..64b003a4b76 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v30/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v30/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v31/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v31/definition/commons.yml index 71c33c17a84..64b003a4b76 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v31/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v31/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v32/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v32/definition/commons.yml index c66468cf42b..781678c7030 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v32/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v32/definition/commons.yml @@ -7,7 +7,7 @@ types: FernFilepath: docs: | The literal filepath to this definition within the Fern definition, note that directories within the Fern definition - denote packages/subpackages which are namespaces, so across subpackages names (for objects, endpoints, etc.) may be + denote packages/subpackages which are namespaces, so across subpackages names (for objects, endpoints, etc.) may be shared, however within the file itself (e.g. the service) names cannot be duplicated. properties: allParts: list @@ -42,7 +42,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v33/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v33/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v33/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v33/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v34/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v34/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v34/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v34/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v35/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v35/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v35/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v35/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v36/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v36/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v36/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v36/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v37/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v37/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v37/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v37/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v38/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v38/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v38/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v38/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v39/definition/auth.yml b/packages/ir-sdk/fern/apis/ir-types-v39/definition/auth.yml index ebb7fac12d8..7986c0e4cb9 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v39/definition/auth.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v39/definition/auth.yml @@ -31,7 +31,7 @@ types: tokenEnvVar: type: optional docs: The environment variable the SDK should use to read the token. - + OAuthScheme: extends: commons.WithDocs docs: | @@ -54,14 +54,14 @@ types: endpointReference: type: commons.EndpointId docs: | - The refrence to the access token endpoint (e.g. _endpoint_auth.token). + The reference to the access token endpoint (e.g. _endpoint_auth.token). responseProperties: OAuthAccessTokenProperties OAuthRefreshEndpoint: properties: endpointReference: type: commons.EndpointId docs: | - The refrence to the refresh token endpoint (e.g. _endpoint_auth.refreshToken). + The reference to the refresh token endpoint (e.g. _endpoint_auth.refreshToken). requestProperties: OAuthRefreshTokenProperties responseProperties: OAuthAccessTokenProperties OAuthAccessTokenProperties: diff --git a/packages/ir-sdk/fern/apis/ir-types-v39/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v39/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v39/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v39/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v40/definition/auth.yml b/packages/ir-sdk/fern/apis/ir-types-v40/definition/auth.yml index ebb7fac12d8..7986c0e4cb9 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v40/definition/auth.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v40/definition/auth.yml @@ -31,7 +31,7 @@ types: tokenEnvVar: type: optional docs: The environment variable the SDK should use to read the token. - + OAuthScheme: extends: commons.WithDocs docs: | @@ -54,14 +54,14 @@ types: endpointReference: type: commons.EndpointId docs: | - The refrence to the access token endpoint (e.g. _endpoint_auth.token). + The reference to the access token endpoint (e.g. _endpoint_auth.token). responseProperties: OAuthAccessTokenProperties OAuthRefreshEndpoint: properties: endpointReference: type: commons.EndpointId docs: | - The refrence to the refresh token endpoint (e.g. _endpoint_auth.refreshToken). + The reference to the refresh token endpoint (e.g. _endpoint_auth.refreshToken). requestProperties: OAuthRefreshTokenProperties responseProperties: OAuthAccessTokenProperties OAuthAccessTokenProperties: diff --git a/packages/ir-sdk/fern/apis/ir-types-v40/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v40/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v40/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v40/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v41/definition/auth.yml b/packages/ir-sdk/fern/apis/ir-types-v41/definition/auth.yml index ebb7fac12d8..7986c0e4cb9 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v41/definition/auth.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v41/definition/auth.yml @@ -31,7 +31,7 @@ types: tokenEnvVar: type: optional docs: The environment variable the SDK should use to read the token. - + OAuthScheme: extends: commons.WithDocs docs: | @@ -54,14 +54,14 @@ types: endpointReference: type: commons.EndpointId docs: | - The refrence to the access token endpoint (e.g. _endpoint_auth.token). + The reference to the access token endpoint (e.g. _endpoint_auth.token). responseProperties: OAuthAccessTokenProperties OAuthRefreshEndpoint: properties: endpointReference: type: commons.EndpointId docs: | - The refrence to the refresh token endpoint (e.g. _endpoint_auth.refreshToken). + The reference to the refresh token endpoint (e.g. _endpoint_auth.refreshToken). requestProperties: OAuthRefreshTokenProperties responseProperties: OAuthAccessTokenProperties OAuthAccessTokenProperties: diff --git a/packages/ir-sdk/fern/apis/ir-types-v41/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v41/definition/commons.yml index c6d9d92e2bf..b04d00d8c36 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v41/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v41/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v42/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v42/definition/commons.yml index bb9e01a08ac..fe814eefe18 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v42/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v42/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v43/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v43/definition/commons.yml index bb9e01a08ac..fe814eefe18 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v43/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v43/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v44/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v44/definition/commons.yml index bb9e01a08ac..fe814eefe18 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v44/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v44/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v45/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v45/definition/commons.yml index bb9e01a08ac..fe814eefe18 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v45/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v45/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v46/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v46/definition/commons.yml index 800644ffc70..ff4160f8f05 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v46/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v46/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v46/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v46/definition/ir.yml index 0493c53df07..0c5624737d8 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v46/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v46/definition/ir.yml @@ -58,7 +58,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v47/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v47/definition/commons.yml index 7b1e00c73f1..ca9f7d9ed69 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v47/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v47/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v47/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v47/definition/ir.yml index 0493c53df07..0c5624737d8 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v47/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v47/definition/ir.yml @@ -58,7 +58,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v48/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v48/definition/commons.yml index 7b1e00c73f1..ca9f7d9ed69 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v48/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v48/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v48/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v48/definition/ir.yml index 6a7784158cc..7afe0565a85 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v48/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v48/definition/ir.yml @@ -58,7 +58,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v49/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v49/definition/commons.yml index 7b1e00c73f1..ca9f7d9ed69 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v49/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v49/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v49/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v49/definition/ir.yml index 6a7784158cc..7afe0565a85 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v49/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v49/definition/ir.yml @@ -58,7 +58,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v50/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v50/definition/commons.yml index 7b1e00c73f1..ca9f7d9ed69 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v50/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v50/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v50/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v50/definition/ir.yml index fe9bbf0130e..b2f954bb4e3 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v50/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v50/definition/ir.yml @@ -59,7 +59,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v51/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v51/definition/commons.yml index 7b1e00c73f1..ca9f7d9ed69 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v51/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v51/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v51/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v51/definition/ir.yml index fe9bbf0130e..b2f954bb4e3 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v51/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v51/definition/ir.yml @@ -59,7 +59,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v52/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v52/definition/commons.yml index 7b1e00c73f1..ca9f7d9ed69 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v52/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v52/definition/commons.yml @@ -36,7 +36,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v52/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v52/definition/ir.yml index fe9bbf0130e..b2f954bb4e3 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v52/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v52/definition/ir.yml @@ -59,7 +59,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional diff --git a/packages/ir-sdk/fern/apis/ir-types-v52/definition/types.yml b/packages/ir-sdk/fern/apis/ir-types-v52/definition/types.yml index d674b31c4e8..5299b920978 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v52/definition/types.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v52/definition/types.yml @@ -134,7 +134,7 @@ types: NamedType: docs: | - A reference to a named type. For backwards compatbility, this type must be fully compatible + A reference to a named type. For backwards compatibility, this type must be fully compatible with the DeclaredTypeName. properties: typeId: commons.TypeId @@ -325,23 +325,23 @@ types: properties: discriminant: commons.NameAndWireValue singleUnionType: ExampleSingleUnionType - - ExampleUndiscriminatedUnionType: - properties: + + ExampleUndiscriminatedUnionType: + properties: index: type: integer - docs: | - The zero-based index of the undiscriminated union variant. - For the following undiscriminated union + docs: | + The zero-based index of the undiscriminated union variant. + For the following undiscriminated union ``` - MyUnion: + MyUnion: discriminated: false - union: + union: - string - integer ``` a string example would have an index 0 and an integer example - would have an index 1. + would have an index 1. singleUnionType: ExampleTypeReference ExampleSingleUnionType: diff --git a/packages/ir-sdk/fern/apis/ir-types-v53/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v53/definition/commons.yml index 781c25fa1ce..cf75199277b 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v53/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v53/definition/commons.yml @@ -40,7 +40,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/endpoints.yml b/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/endpoints.yml index 82b479d5863..f4dcc123712 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/endpoints.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/endpoints.yml @@ -22,15 +22,15 @@ types: Request: docs: | - Reperesents the request parameters required to call a specific endpoiont. + Represents the request parameters required to call a specific endpoint. union: body: BodyRequest inlined: InlinedRequest - + Response: docs: | - Reperesents the response returned by a specific endpoint. - + Represents the response returned by a specific endpoint. + For now, we only support json responses, but this is set up to support a variety of other endpoint response types (e.g. file download, pagination, streaming, etc). @@ -41,7 +41,7 @@ types: properties: pathParameters: optional> body: optional - + InlinedRequest: properties: declaration: declaration.Declaration @@ -66,7 +66,7 @@ types: If true, the path parameters are the only parameters specified in the inlined request. - In combination with inludePathParameters, this influences whether or not the + In combination with includePathParameters, this influences whether or not the inlined request type should be generated at all. type: boolean @@ -75,7 +75,7 @@ types: properties: list referenced: ReferencedRequestBody fileUpload: FileUploadRequestBody - + ReferencedRequestBody: properties: bodyKey: commons.Name diff --git a/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/ir.yml index ef78d99015d..19507ebd278 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v53/definition/dynamic/ir.yml @@ -14,7 +14,7 @@ types: properties: version: docs: | - The version of the dynamic IR. This is independent from the verison + The version of the dynamic IR. This is independent from the version of the primary IR. type: literal<"1.0.0"> types: map diff --git a/packages/ir-sdk/fern/apis/ir-types-v53/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v53/definition/ir.yml index ef42039791a..5caf409bf8e 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v53/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v53/definition/ir.yml @@ -70,7 +70,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional @@ -83,10 +83,10 @@ types: with each feature. type: optional>> SourceConfig: - properties: + properties: sources: docs: The raw API definitions that produced the IR. - type: list + type: list ApiDefinitionSourceId: docs: | Uniquely identifies a specific API definition source. This allows us to clearly identify @@ -117,12 +117,12 @@ types: sdkName: string sdkVersion: string userAgent: optional - UserAgent: - properties: - header: + UserAgent: + properties: + header: type: literal<"User-Agent"> - docs: The user agent header for ease of access to generators. - value: + docs: The user agent header for ease of access to generators. + value: type: string docs: Formatted as "/" diff --git a/packages/ir-sdk/fern/apis/ir-types-v53/definition/types.yml b/packages/ir-sdk/fern/apis/ir-types-v53/definition/types.yml index 48c0f173782..5d234806b5a 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v53/definition/types.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v53/definition/types.yml @@ -162,7 +162,7 @@ types: NamedType: docs: | - A reference to a named type. For backwards compatbility, this type must be fully compatible + A reference to a named type. For backwards compatibility, this type must be fully compatible with the DeclaredTypeName. properties: typeId: commons.TypeId diff --git a/packages/ir-sdk/fern/apis/ir-types-v54/definition/commons.yml b/packages/ir-sdk/fern/apis/ir-types-v54/definition/commons.yml index 781c25fa1ce..cf75199277b 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v54/definition/commons.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v54/definition/commons.yml @@ -40,7 +40,7 @@ types: EscapedString: docs: | Defines the original string, and its escaped-equivalent (depending on the target programming language). - This is paricularly relevant to example string literals. + This is particularly relevant to example string literals. For example, in Python we escape strings that contain single or double quotes by using triple quotes, in Go we use backticks, etc. diff --git a/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/endpoints.yml b/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/endpoints.yml index 82b479d5863..f4dcc123712 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/endpoints.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/endpoints.yml @@ -22,15 +22,15 @@ types: Request: docs: | - Reperesents the request parameters required to call a specific endpoiont. + Represents the request parameters required to call a specific endpoint. union: body: BodyRequest inlined: InlinedRequest - + Response: docs: | - Reperesents the response returned by a specific endpoint. - + Represents the response returned by a specific endpoint. + For now, we only support json responses, but this is set up to support a variety of other endpoint response types (e.g. file download, pagination, streaming, etc). @@ -41,7 +41,7 @@ types: properties: pathParameters: optional> body: optional - + InlinedRequest: properties: declaration: declaration.Declaration @@ -66,7 +66,7 @@ types: If true, the path parameters are the only parameters specified in the inlined request. - In combination with inludePathParameters, this influences whether or not the + In combination with includePathParameters, this influences whether or not the inlined request type should be generated at all. type: boolean @@ -75,7 +75,7 @@ types: properties: list referenced: ReferencedRequestBody fileUpload: FileUploadRequestBody - + ReferencedRequestBody: properties: bodyKey: commons.Name diff --git a/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/ir.yml index 7577bd975d5..297fd219344 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v54/definition/dynamic/ir.yml @@ -15,7 +15,7 @@ types: properties: version: docs: | - The version of the dynamic IR. This is independent from the verison + The version of the dynamic IR. This is independent from the version of the primary IR. type: literal<"1.0.0"> types: map diff --git a/packages/ir-sdk/fern/apis/ir-types-v54/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-v54/definition/ir.yml index ef42039791a..5caf409bf8e 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v54/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v54/definition/ir.yml @@ -70,7 +70,7 @@ types: properties: defaultEndpoint: docs: | - If specified, this enpdoint should be used in every snippet (if possible). + If specified, this endpoint should be used in every snippet (if possible). Note that some endpoints aren't suitable for every feature (e.g. a non-list endpoint for pagination), so the default is a no-op in those cases. type: optional @@ -83,10 +83,10 @@ types: with each feature. type: optional>> SourceConfig: - properties: + properties: sources: docs: The raw API definitions that produced the IR. - type: list + type: list ApiDefinitionSourceId: docs: | Uniquely identifies a specific API definition source. This allows us to clearly identify @@ -117,12 +117,12 @@ types: sdkName: string sdkVersion: string userAgent: optional - UserAgent: - properties: - header: + UserAgent: + properties: + header: type: literal<"User-Agent"> - docs: The user agent header for ease of access to generators. - value: + docs: The user agent header for ease of access to generators. + value: type: string docs: Formatted as "/" diff --git a/packages/ir-sdk/fern/apis/ir-types-v54/definition/types.yml b/packages/ir-sdk/fern/apis/ir-types-v54/definition/types.yml index 48c0f173782..5d234806b5a 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v54/definition/types.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v54/definition/types.yml @@ -162,7 +162,7 @@ types: NamedType: docs: | - A reference to a named type. For backwards compatbility, this type must be fully compatible + A reference to a named type. For backwards compatibility, this type must be fully compatible with the DeclaredTypeName. properties: typeId: commons.TypeId diff --git a/packages/ir-sdk/src/sdk/api/resources/commons/types/EscapedString.ts b/packages/ir-sdk/src/sdk/api/resources/commons/types/EscapedString.ts index f8e49e55081..ba96b579e14 100644 --- a/packages/ir-sdk/src/sdk/api/resources/commons/types/EscapedString.ts +++ b/packages/ir-sdk/src/sdk/api/resources/commons/types/EscapedString.ts @@ -4,7 +4,7 @@ /** * Defines the original string, and its escaped-equivalent (depending on the target programming language). - * This is paricularly relevant to example string literals. + * This is particularly relevant to example string literals. * * For example, in Python we escape strings that contain single or double quotes by using triple quotes, * in Go we use backticks, etc. diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.ts index 10daec9ea1d..e9ad4e362d7 100644 --- a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.ts +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/InlinedRequestMetadata.ts @@ -15,7 +15,7 @@ export interface InlinedRequestMetadata { * If true, the path parameters are the only parameters specified in the * inlined request. * - * In combination with inludePathParameters, this influences whether or not the + * In combination with includePathParameters, this influences whether or not the * inlined request type should be generated at all. */ onlyPathParameters: boolean; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts index 99e2f4eb322..60d26bd5d5b 100644 --- a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Request.ts @@ -5,7 +5,7 @@ import * as FernIr from "../../../../../index"; /** - * Reperesents the request parameters required to call a specific endpoiont. + * Represents the request parameters required to call a specific endpoint. */ export type Request = FernIr.dynamic.Request.Body | FernIr.dynamic.Request.Inlined; diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts index d478fe93a6e..7b98445cddc 100644 --- a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/endpoints/types/Response.ts @@ -5,7 +5,7 @@ import * as FernIr from "../../../../../index"; /** - * Reperesents the response returned by a specific endpoint. + * Represents the response returned by a specific endpoint. * * For now, we only support json responses, but this is set up to support a * variety of other endpoint response types (e.g. file download, pagination, diff --git a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts index 66e62b14cd4..ceac51ab75e 100644 --- a/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts +++ b/packages/ir-sdk/src/sdk/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.ts @@ -12,7 +12,7 @@ import * as FernIr from "../../../../../index"; */ export interface DynamicIntermediateRepresentation { /** - * The version of the dynamic IR. This is independent from the verison + * The version of the dynamic IR. This is independent from the version * of the primary IR. */ version: "1.0.0"; diff --git a/packages/ir-sdk/src/sdk/api/resources/ir/types/ReadmeConfig.ts b/packages/ir-sdk/src/sdk/api/resources/ir/types/ReadmeConfig.ts index 08cd33c0956..95bb1e5cf5e 100644 --- a/packages/ir-sdk/src/sdk/api/resources/ir/types/ReadmeConfig.ts +++ b/packages/ir-sdk/src/sdk/api/resources/ir/types/ReadmeConfig.ts @@ -10,7 +10,7 @@ import * as FernIr from "../../../index"; */ export interface ReadmeConfig { /** - * If specified, this enpdoint should be used in every snippet (if possible). + * If specified, this endpoint should be used in every snippet (if possible). * Note that some endpoints aren't suitable for every feature (e.g. a non-list * endpoint for pagination), so the default is a no-op in those cases. */ diff --git a/packages/ir-sdk/src/sdk/api/resources/types/types/NamedType.ts b/packages/ir-sdk/src/sdk/api/resources/types/types/NamedType.ts index 4ecdf65a8f9..494545a8e39 100644 --- a/packages/ir-sdk/src/sdk/api/resources/types/types/NamedType.ts +++ b/packages/ir-sdk/src/sdk/api/resources/types/types/NamedType.ts @@ -5,7 +5,7 @@ import * as FernIr from "../../../index"; /** - * A reference to a named type. For backwards compatbility, this type must be fully compatible + * A reference to a named type. For backwards compatibility, this type must be fully compatible * with the DeclaredTypeName. */ export interface NamedType { diff --git a/packages/seed/fern/definition/features.yml b/packages/seed/fern/definition/features.yml index af08b701fcf..d47943659cc 100644 --- a/packages/seed/fern/definition/features.yml +++ b/packages/seed/fern/definition/features.yml @@ -1,10 +1,10 @@ types: FeatureImplementation: discriminated: false - union: + union: - boolean - FeatureImplementationWithDetails - + FeatureImplementationWithDetails: properties: isImplemented: @@ -16,7 +16,7 @@ types: docs: | Any useful information about the implementation status, if it's begun, if it's behind a feature flag, etc. - + GeneratorFeatures: docs: | Based on the features outlined within https://www.notion.so/buildwithfern/Generator-Features-2cc7e6c87fc54738843940d35af5c6a4?pvs=4 @@ -51,9 +51,9 @@ types: consume these definitions and support these protocols. streamingJson: type: FeatureImplementation - docs: | - Primarly used for chat completion. - Support streaming json responses, and provide a way to consume them. This + docs: | + Primarily used for chat completion. + Support streaming json responses, and provide a way to consume them. This fileUpload: type: FeatureImplementation docs: | @@ -61,7 +61,7 @@ types: fileDownload: type: FeatureImplementation docs: | - Support downloading files. + Support downloading files. snippets: type: FeatureImplementation docs: | @@ -79,26 +79,26 @@ types: forwardCompatibleEnums: type: FeatureImplementation docs: | - The SDK should support forward compatible enums, meaning the SDK should pass through "unknown" enum values as strings. + The SDK should support forward compatible enums, meaning the SDK should pass through "unknown" enum values as strings. This means that if the API adds a new enum value, the SDK handles it without need for upgrade. additionalProperties: type: FeatureImplementation docs: | - The SDK should provide a way to access additional properties on the response object. + The SDK should provide a way to access additional properties on the response object. This is useful for when the API adds new fields to the response object and the user wants to grab them without upgrading the SDK. - apiReferenceGeneration: + apiReferenceGeneration: type: FeatureImplementation docs: | - The SDK should generate an API reference markdown file (refrence.md at the root level) that shows all the endpoints, their documentation, + The SDK should generate an API reference markdown file (reference.md at the root level) that shows all the endpoints, their documentation, their parameters, and their responses. - whitelabel: + whitelabel: type: FeatureImplementation - docs: | - Whether the generator supports reading the whitelable configuration. - If true, the generator will not mention `fern` in the hader of the - generated code. + docs: | + Whether the generator supports reading the whitelabel configuration. + If true, the generator will not mention `fern` in the header of the + generated code. - Instead of `This file was auto-generated by Fern from our API Definition`, + Instead of `This file was auto-generated by Fern from our API Definition`, the header will read `This file was auto-generated from our API Definition`. polling: type: FeatureImplementation @@ -106,6 +106,6 @@ types: The SDK should support taking in a request and polling endpoint pair, alongside polling options (polling interval and max attempts) to wrap the endpoint pair and return the final response type of the polling endpoint. - - This is for convenience to obfuscate the need for two distinct endpoints. + + This is for convenience to obfuscate the need for two distinct endpoints. This should support sync and async implementations where available. \ No newline at end of file diff --git a/packages/seed/src/__test__/assets/live-test/new.yml b/packages/seed/src/__test__/assets/live-test/new.yml index 8cfe8515edb..2bfc4ddf57f 100644 --- a/packages/seed/src/__test__/assets/live-test/new.yml +++ b/packages/seed/src/__test__/assets/live-test/new.yml @@ -7,7 +7,7 @@ - changelogEntry: - summary: | - The documentation resolver now approrpiately creates a unique identifier for changelog sections. Previously, if you had multiple + The documentation resolver now appropriately creates a unique identifier for changelog sections. Previously, if you had multiple changelogs within the same section, despite their title and slug being different, they would be treated as the same section since the ID only took into account the parents' slug, appended the word "changelog" and that was all. @@ -125,7 +125,7 @@ version: 0.42.6 - changelogEntry: - - summary: Adds additional metadata retrievable by `fern generator get` so you can now get the langauage and the target repo. + - summary: Adds additional metadata retrievable by `fern generator get` so you can now get the language and the target repo. type: feat irVersion: 53 version: 0.42.5 @@ -208,7 +208,7 @@ specs: - openapi: openapi-bar.yml namespace: bar - - openapi: opneapi-foo.yml + - openapi: openapi-foo.yml namespace: foo ``` type: fix @@ -276,7 +276,7 @@ - summary: | Running `fern check` will now check to confirm that the generator versions you are running are compatible with your Fern CLI version. - Each version of SDK generators depends on a version of a libary that is exported by the Fern CLI, and as a result, each generator has a minimum + Each version of SDK generators depends on a version of a library that is exported by the Fern CLI, and as a result, each generator has a minimum compatible version of the Fern CLI. As an example, if you were to run `fern check` while leveraging `fernapi/fern-python-sdk` version `2.0.0`, on CLI version `0.1.3`, you'd receive the following error: `The generator fernapi/fern-python-sdk requires CLI version 0.23.0-rc4 or later (current version: 0.1.3-rc0).` @@ -720,7 +720,7 @@ version: 0.39.16 - changelogEntry: - - summary: Introduce `generator list` and `organization` commands to faciliate actions taken by `fern-bot` + - summary: Introduce `generator list` and `organization` commands to facilitate actions taken by `fern-bot` type: internal createdAt: "2024-08-21" irVersion: 53 @@ -1481,7 +1481,7 @@ \n* fix: (regression) parseDocsConfiguration accidentally calls loadAllPages\ \ with absolutePathToDocsConfig by @abvthecity in https://github.com/fern-api/fern/pull/4026\r\ \n* (feature, typescript): Add offset step pagination with IRv48 by @amckinney\ - \ in https://github.com/fern-api/fern/pull/4028\r\n* csharp, fix, feature, improvment:\ + \ in https://github.com/fern-api/fern/pull/4028\r\n* csharp, fix, feature, improvement:\ \ Target .NET Standard + Framework, fix various bugs, many small improvements\ \ by @dcb6 in https://github.com/fern-api/fern/pull/4030\r\n* fix: update unchecked\ \ base model to not coerce none by @armandobelardo in https://github.com/fern-api/fern/pull/4029\r\ @@ -1569,7 +1569,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (chore): Replace CircleCI with GitHub workflows\ \ by @amckinney in https://github.com/fern-api/fern/pull/3991\r\n* (fix): Update\ - \ NPM token envrionment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ + \ NPM token environment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ \n* (fix): Update git-version.sh script by @amckinney in https://github.com/fern-api/fern/pull/3993\r\ \n* (fix): Use github.ref_name by @amckinney in https://github.com/fern-api/fern/pull/3996\r\ \n* (fix): Add POSTHOG_API_KEY to live-test job by @amckinney in https://github.com/fern-api/fern/pull/3998\r\ @@ -1597,7 +1597,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (chore): Replace CircleCI with GitHub workflows\ \ by @amckinney in https://github.com/fern-api/fern/pull/3991\r\n* (fix): Update\ - \ NPM token envrionment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ + \ NPM token environment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ \n* (fix): Update git-version.sh script by @amckinney in https://github.com/fern-api/fern/pull/3993\r\ \n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.15...0.31.17-rc0" type: chore @@ -1625,7 +1625,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (fix, go): Don't send 'null' for nil request\ \ body by @amckinney in https://github.com/fern-api/fern/pull/3987\r\n* (fix):\ - \ fern generate --preview doesnt check for env variables by @dsinghvi in https://github.com/fern-api/fern/pull/3988\r\ + \ fern generate --preview doesn't check for env variables by @dsinghvi in https://github.com/fern-api/fern/pull/3988\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.13...0.31.14" type: chore createdAt: "2024-07-04" @@ -1665,7 +1665,7 @@ \n* fix: python pagination helper types now share generic type by @armandobelardo\ \ in https://github.com/fern-api/fern/pull/3973\r\n* chore: update python seed\ \ after generator-cli update by @armandobelardo in https://github.com/fern-api/fern/pull/3974\r\ - \n* (charp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6\ + \n* (csharp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6\ \ in https://github.com/fern-api/fern/pull/3975\r\n* (java, improvement): change\ \ default `JsonInclude` behavior by @dcb6 in https://github.com/fern-api/fern/pull/3978\r\ \n* (csharp, fix): base client requests not generated by @dcb6 in https://github.com/fern-api/fern/pull/3976\r\ @@ -1749,7 +1749,7 @@ version: 0.31.4 - changelogEntry: - summary: "## What's Changed\r\n* fix: the python sdk sends additional properties\ - \ to the correct reques\u2026 by @armandobelardo in https://github.com/fern-api/fern/pull/3936\r\ + \ to the correct request\u2026 by @armandobelardo in https://github.com/fern-api/fern/pull/3936\r\ \n* java, improvement: improve java exception naming by @dcb6 in https://github.com/fern-api/fern/pull/3938\r\ \n* Bump golang.org/x/tools from 0.21.0 to 0.22.0 in /generators/go by @dependabot\ \ in https://github.com/fern-api/fern/pull/3823\r\n* (fix): make sure that `exclusiveMaximum`\ @@ -1810,8 +1810,8 @@ - summary: "## What's Changed\r\n* (feat, IR): support streaming code generation\ \ with the parameter by @dsinghvi in https://github.com/fern-api/fern/pull/3914\r\ \n* (feat): update frontmatter docs by @chdeskur in https://github.com/fern-api/fern/pull/3916\r\ - \n* (fix, cli): examples dont print out where the missing property is by @dsinghvi\ - \ in https://github.com/fern-api/fern/pull/3919\r\n* (fix): dont error if required\ + \n* (fix, cli): examples don't print out where the missing property is by @dsinghvi\ + \ in https://github.com/fern-api/fern/pull/3919\r\n* (fix): don't error if required\ \ literal parameters are unspecified by @dsinghvi in https://github.com/fern-api/fern/pull/3921\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.0-rc3...0.31.0-rc4" type: chore @@ -2341,7 +2341,7 @@ \n* docs changed trivial anchor text by @atwooddc in https://github.com/fern-api/fern/pull/3687\r\ \n* docs: unbolded sections for seo by @atwooddc in https://github.com/fern-api/fern/pull/3686\r\ \n* docs: api definition docs and mdx descriptions for seo by @atwooddc in https://github.com/fern-api/fern/pull/3685\r\ - \n* (fix, csharp): scan `EnumMember` annotations when serializaing to string\ + \n* (fix, csharp): scan `EnumMember` annotations when serializing to string\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/3688\r\n* fix, python:\ \ request bodies respect literals again by @armandobelardo in https://github.com/fern-api/fern/pull/3689\r\ \n* (fix, python): support endpoint method names by @dsinghvi in https://github.com/fern-api/fern/pull/3690\r\ @@ -2380,7 +2380,7 @@ - summary: "## What's Changed\r\n* (feature): Add support for default values and\ \ validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640\r\ \n* improvement: add in config to enrich pypi metadata by @armandobelardo in\ - \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, chsarp): `.csproj` generation\ + \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, csharp): `.csproj` generation\ \ includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659\r\ \n* feat: allow users to configure pypi details by @armandobelardo in https://github.com/fern-api/fern/pull/3662\r\ \n* (fix, python): include project URLs in generated pyproject toml by @armandobelardo\ @@ -2401,7 +2401,7 @@ - summary: "## What's Changed\r\n* (feature): Add support for default values and\ \ validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640\r\ \n* improvement: add in config to enrich pypi metadata by @armandobelardo in\ - \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, chsarp): `.csproj` generation\ + \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, csharp): `.csproj` generation\ \ includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.27.0...0.27.1-rc0" type: chore @@ -2661,7 +2661,7 @@ \ configuration to the express generator by @dsinghvi in https://github.com/fern-api/fern/pull/3560\r\ \n* (fix) [wip] java empty response body instead of null by @dcb6 in https://github.com/fern-api/fern/pull/3545\r\ \n* Document new `background` prop for `Frame` component by @KenzoBenzo in https://github.com/fern-api/fern/pull/3559\r\ - \n* (improvment, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563\r\ + \n* (improvement, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563\r\ \n* (docs) consolidate code snippets and code block markdown pages by @abvthecity\ \ in https://github.com/fern-api/fern/pull/3562\r\n* fix: deduplicate image\ \ filepaths to upload by @abvthecity in https://github.com/fern-api/fern/pull/3564\r\ @@ -2781,7 +2781,7 @@ \n* (internal, test): Stop testing IR generation snapshots by @dsinghvi in https://github.com/fern-api/fern/pull/3508\r\ \n* fix, python: pipe through the whole kit and caboodle for inlined unions\ \ by @armandobelardo in https://github.com/fern-api/fern/pull/3507\r\n* fix,\ - \ python: the SDK generator now generates disciminated unions correctlly by\ + \ python: the SDK generator now generates discriminated unions correctly by\ \ @armandobelardo in https://github.com/fern-api/fern/pull/3509\r\n* internal:\ \ release python generator RC by @armandobelardo in https://github.com/fern-api/fern/pull/3510\r\ \n* fix, ts, python: snippet template paper cuts by @armandobelardo in https://github.com/fern-api/fern/pull/3511\r\ @@ -2850,7 +2850,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* improvement: throw a better error when an invalid\ \ version is used by @armandobelardo in https://github.com/fern-api/fern/pull/3477\r\ - \n* (fix, go): Discrimninated unions always include discriminant by @amckinney\ + \n* (fix, go): Discriminated unions always include discriminant by @amckinney\ \ in https://github.com/fern-api/fern/pull/3479\r\n* (internal, feat): add \ \ mode to seed for running the generators directly from source by @dsinghvi\ \ in https://github.com/fern-api/fern/pull/3421\r\n* (fix, docs): improve docs\ @@ -2860,7 +2860,7 @@ \ in https://github.com/fern-api/fern/pull/3482\r\n* (chore): parse file upload\ \ and their descriptions by @dsinghvi in https://github.com/fern-api/fern/pull/3485\r\ \n* (feature, go): Add cursor and offset pagination by @amckinney in https://github.com/fern-api/fern/pull/3486\r\ - \n* (fix): redo docs for accordion, accorodion groups, callouts, card groups,\ + \n* (fix): redo docs for accordion, accordion groups, callouts, card groups,\ \ etc. by @dsinghvi in https://github.com/fern-api/fern/pull/3489\r\n* (fix,\ \ docs): document frames and endpoint req/res snippets by @dsinghvi in https://github.com/fern-api/fern/pull/3490\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.23.1...0.23.2" @@ -3632,7 +3632,7 @@ \ query params correctly in the TypeScript SDK by @dsinghvi in https://github.com/fern-api/fern/pull/3071\r\ \n* fix, ruby: Ensure the name passed into the `X-Fern-SDK-Name` header is the\ \ name of the gem, not the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073\r\ - \n* (fix, typescript): sdk code snippets dont render empty dicts for parameters\ + \n* (fix, typescript): sdk code snippets don't render empty dicts for parameters\ \ with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074\r\ \n* (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072\r\ \n* (chore, internal): move `docs-config` to use local typescript sdk gen by\ @@ -3750,7 +3750,7 @@ \ in https://github.com/fern-api/fern/pull/3071\r\n* (fix, ruby): Ensure the\ \ name passed into the `X-Fern-SDK-Name` header is the name of the gem, not\ \ the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073\r\ - \n* (fix, typescript): sdk code snippets dont render empty dicts for parameters\ + \n* (fix, typescript): sdk code snippets don't render empty dicts for parameters\ \ with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074\r\ \n* (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072\r\ \n* (chore, internal): move `docs-config` to use local typescript sdk gen by\ @@ -4076,7 +4076,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (feature): OpenAPI importer supports format `json-string`\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/2827\r\n ```yaml\r\n\ - \ MySchema: \r\n type: striing\r\n format: json-string # <---- OpenAPI\ + \ MySchema: \r\n type: string\r\n format: json-string # <---- OpenAPI\ \ importer handles this\r\n ```\r\n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.16.40...0.16.41" type: chore createdAt: "2024-01-29" @@ -4095,7 +4095,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (release): support scanning env variable for\ \ auth in python sdk generator 0.8.1 by @dsinghvi in https://github.com/fern-api/fern/pull/2811\r\ - \n* (feature): introduce nuget ouptut location by @dsinghvi in https://github.com/fern-api/fern/pull/2812\r\ + \n* (feature): introduce nuget output location by @dsinghvi in https://github.com/fern-api/fern/pull/2812\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.16.38...0.16.39" type: chore createdAt: "2024-01-26" @@ -4517,7 +4517,7 @@ irVersion: 32 version: 0.15.13 - changelogEntry: - - summary: "## What's Changed\r\n* internal: seed supports configurable ouptut mode\ + - summary: "## What's Changed\r\n* internal: seed supports configurable output mode\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/2430\r\n* internal:\ \ add examples to literal-headers test definition by @amckinney in https://github.com/fern-api/fern/pull/2437\r\ \n* internal: seed fixtures are dynamic by @amckinney in https://github.com/fern-api/fern/pull/2440\r\ @@ -4746,7 +4746,7 @@ irVersion: 30 version: 0.15.0-rc81 - changelogEntry: - - summary: "## What's Changed\r\n* fix: dont compare root api files if dependency\ + - summary: "## What's Changed\r\n* fix: don't compare root api files if dependency\ \ has no endpoints by @dsinghvi in https://github.com/fern-api/fern/pull/2282\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.15.0-rc79...0.15.0-rc80" type: chore @@ -5101,7 +5101,7 @@ irVersion: 26 version: 0.15.0-rc22 - changelogEntry: - - summary: "- Only set GA availablity if explicitly defined in the API Definition + - summary: "- Only set GA availability if explicitly defined in the API Definition (@dsinghvi) " type: chore createdAt: "2023-09-17" @@ -6970,7 +6970,7 @@ version: 0.5.1 - changelogEntry: - summary: "## What's Changed\r\n* Support http streams in responses by @zachkirsch\ - \ in https://github.com/fern-api/fern/pull/1365\r\n* fix: introduce undiscrminated\ + \ in https://github.com/fern-api/fern/pull/1365\r\n* fix: introduce undiscriminated\ \ unions by @dsinghvi in https://github.com/fern-api/fern/pull/1367\r\n* Add\ \ release blocker for undiscriminated unions by @zachkirsch in https://github.com/fern-api/fern/pull/1369\r\ \n* Fix undiscriminated union rule by @zachkirsch in https://github.com/fern-api/fern/pull/1370\r\ diff --git a/packages/seed/src/__test__/assets/live-test/old.yml b/packages/seed/src/__test__/assets/live-test/old.yml index 502f3eeb369..0f552c6dd7d 100644 --- a/packages/seed/src/__test__/assets/live-test/old.yml +++ b/packages/seed/src/__test__/assets/live-test/old.yml @@ -1,6 +1,6 @@ - changelogEntry: - summary: | - The documentation resolver now approrpiately creates a unique identifier for changelog sections. Previously, if you had multiple + The documentation resolver now appropriately creates a unique identifier for changelog sections. Previously, if you had multiple changelogs within the same section, despite their title and slug being different, they would be treated as the same section since the ID only took into account the parents' slug, appended the word "changelog" and that was all. @@ -118,7 +118,7 @@ version: 0.42.6 - changelogEntry: - - summary: Adds additional metadata retrievable by `fern generator get` so you can now get the langauage and the target repo. + - summary: Adds additional metadata retrievable by `fern generator get` so you can now get the language and the target repo. type: feat irVersion: 53 version: 0.42.5 @@ -201,7 +201,7 @@ specs: - openapi: openapi-bar.yml namespace: bar - - openapi: opneapi-foo.yml + - openapi: openapi-foo.yml namespace: foo ``` type: fix @@ -269,7 +269,7 @@ - summary: | Running `fern check` will now check to confirm that the generator versions you are running are compatible with your Fern CLI version. - Each version of SDK generators depends on a version of a libary that is exported by the Fern CLI, and as a result, each generator has a minimum + Each version of SDK generators depends on a version of a library that is exported by the Fern CLI, and as a result, each generator has a minimum compatible version of the Fern CLI. As an example, if you were to run `fern check` while leveraging `fernapi/fern-python-sdk` version `2.0.0`, on CLI version `0.1.3`, you'd receive the following error: `The generator fernapi/fern-python-sdk requires CLI version 0.23.0-rc4 or later (current version: 0.1.3-rc0).` @@ -713,7 +713,7 @@ version: 0.39.16 - changelogEntry: - - summary: Introduce `generator list` and `organization` commands to faciliate actions taken by `fern-bot` + - summary: Introduce `generator list` and `organization` commands to facilitate actions taken by `fern-bot` type: internal createdAt: "2024-08-21" irVersion: 53 @@ -1474,7 +1474,7 @@ \n* fix: (regression) parseDocsConfiguration accidentally calls loadAllPages\ \ with absolutePathToDocsConfig by @abvthecity in https://github.com/fern-api/fern/pull/4026\r\ \n* (feature, typescript): Add offset step pagination with IRv48 by @amckinney\ - \ in https://github.com/fern-api/fern/pull/4028\r\n* csharp, fix, feature, improvment:\ + \ in https://github.com/fern-api/fern/pull/4028\r\n* csharp, fix, feature, improvement:\ \ Target .NET Standard + Framework, fix various bugs, many small improvements\ \ by @dcb6 in https://github.com/fern-api/fern/pull/4030\r\n* fix: update unchecked\ \ base model to not coerce none by @armandobelardo in https://github.com/fern-api/fern/pull/4029\r\ @@ -1562,7 +1562,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (chore): Replace CircleCI with GitHub workflows\ \ by @amckinney in https://github.com/fern-api/fern/pull/3991\r\n* (fix): Update\ - \ NPM token envrionment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ + \ NPM token environment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ \n* (fix): Update git-version.sh script by @amckinney in https://github.com/fern-api/fern/pull/3993\r\ \n* (fix): Use github.ref_name by @amckinney in https://github.com/fern-api/fern/pull/3996\r\ \n* (fix): Add POSTHOG_API_KEY to live-test job by @amckinney in https://github.com/fern-api/fern/pull/3998\r\ @@ -1590,7 +1590,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (chore): Replace CircleCI with GitHub workflows\ \ by @amckinney in https://github.com/fern-api/fern/pull/3991\r\n* (fix): Update\ - \ NPM token envrionment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ + \ NPM token environment variable by @amckinney in https://github.com/fern-api/fern/pull/3992\r\ \n* (fix): Update git-version.sh script by @amckinney in https://github.com/fern-api/fern/pull/3993\r\ \n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.15...0.31.17-rc0" type: chore @@ -1618,7 +1618,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (fix, go): Don't send 'null' for nil request\ \ body by @amckinney in https://github.com/fern-api/fern/pull/3987\r\n* (fix):\ - \ fern generate --preview doesnt check for env variables by @dsinghvi in https://github.com/fern-api/fern/pull/3988\r\ + \ fern generate --preview doesn't check for env variables by @dsinghvi in https://github.com/fern-api/fern/pull/3988\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.13...0.31.14" type: chore createdAt: "2024-07-04" @@ -1658,7 +1658,7 @@ \n* fix: python pagination helper types now share generic type by @armandobelardo\ \ in https://github.com/fern-api/fern/pull/3973\r\n* chore: update python seed\ \ after generator-cli update by @armandobelardo in https://github.com/fern-api/fern/pull/3974\r\ - \n* (charp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6\ + \n* (csharp, fix): Empty Root Client Methods + `.Core` namespace issue by @dcb6\ \ in https://github.com/fern-api/fern/pull/3975\r\n* (java, improvement): change\ \ default `JsonInclude` behavior by @dcb6 in https://github.com/fern-api/fern/pull/3978\r\ \n* (csharp, fix): base client requests not generated by @dcb6 in https://github.com/fern-api/fern/pull/3976\r\ @@ -1742,7 +1742,7 @@ version: 0.31.4 - changelogEntry: - summary: "## What's Changed\r\n* fix: the python sdk sends additional properties\ - \ to the correct reques\u2026 by @armandobelardo in https://github.com/fern-api/fern/pull/3936\r\ + \ to the correct request\u2026 by @armandobelardo in https://github.com/fern-api/fern/pull/3936\r\ \n* java, improvement: improve java exception naming by @dcb6 in https://github.com/fern-api/fern/pull/3938\r\ \n* Bump golang.org/x/tools from 0.21.0 to 0.22.0 in /generators/go by @dependabot\ \ in https://github.com/fern-api/fern/pull/3823\r\n* (fix): make sure that `exclusiveMaximum`\ @@ -1803,8 +1803,8 @@ - summary: "## What's Changed\r\n* (feat, IR): support streaming code generation\ \ with the parameter by @dsinghvi in https://github.com/fern-api/fern/pull/3914\r\ \n* (feat): update frontmatter docs by @chdeskur in https://github.com/fern-api/fern/pull/3916\r\ - \n* (fix, cli): examples dont print out where the missing property is by @dsinghvi\ - \ in https://github.com/fern-api/fern/pull/3919\r\n* (fix): dont error if required\ + \n* (fix, cli): examples don't print out where the missing property is by @dsinghvi\ + \ in https://github.com/fern-api/fern/pull/3919\r\n* (fix): don't error if required\ \ literal parameters are unspecified by @dsinghvi in https://github.com/fern-api/fern/pull/3921\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.31.0-rc3...0.31.0-rc4" type: chore @@ -2334,7 +2334,7 @@ \n* docs changed trivial anchor text by @atwooddc in https://github.com/fern-api/fern/pull/3687\r\ \n* docs: unbolded sections for seo by @atwooddc in https://github.com/fern-api/fern/pull/3686\r\ \n* docs: api definition docs and mdx descriptions for seo by @atwooddc in https://github.com/fern-api/fern/pull/3685\r\ - \n* (fix, csharp): scan `EnumMember` annotations when serializaing to string\ + \n* (fix, csharp): scan `EnumMember` annotations when serializing to string\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/3688\r\n* fix, python:\ \ request bodies respect literals again by @armandobelardo in https://github.com/fern-api/fern/pull/3689\r\ \n* (fix, python): support endpoint method names by @dsinghvi in https://github.com/fern-api/fern/pull/3690\r\ @@ -2373,7 +2373,7 @@ - summary: "## What's Changed\r\n* (feature): Add support for default values and\ \ validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640\r\ \n* improvement: add in config to enrich pypi metadata by @armandobelardo in\ - \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, chsarp): `.csproj` generation\ + \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, csharp): `.csproj` generation\ \ includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659\r\ \n* feat: allow users to configure pypi details by @armandobelardo in https://github.com/fern-api/fern/pull/3662\r\ \n* (fix, python): include project URLs in generated pyproject toml by @armandobelardo\ @@ -2394,7 +2394,7 @@ - summary: "## What's Changed\r\n* (feature): Add support for default values and\ \ validation rules by @amckinney in https://github.com/fern-api/fern/pull/3640\r\ \n* improvement: add in config to enrich pypi metadata by @armandobelardo in\ - \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, chsarp): `.csproj` generation\ + \ https://github.com/fern-api/fern/pull/3660\r\n* (fix, csharp): `.csproj` generation\ \ includes license, version, and github url by @dsinghvi in https://github.com/fern-api/fern/pull/3659\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.27.0...0.27.1-rc0" type: chore @@ -2654,7 +2654,7 @@ \ configuration to the express generator by @dsinghvi in https://github.com/fern-api/fern/pull/3560\r\ \n* (fix) [wip] java empty response body instead of null by @dcb6 in https://github.com/fern-api/fern/pull/3545\r\ \n* Document new `background` prop for `Frame` component by @KenzoBenzo in https://github.com/fern-api/fern/pull/3559\r\ - \n* (improvment, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563\r\ + \n* (improvement, ir): Improve OAuth IR customizability by @amckinney in https://github.com/fern-api/fern/pull/3563\r\ \n* (docs) consolidate code snippets and code block markdown pages by @abvthecity\ \ in https://github.com/fern-api/fern/pull/3562\r\n* fix: deduplicate image\ \ filepaths to upload by @abvthecity in https://github.com/fern-api/fern/pull/3564\r\ @@ -2774,7 +2774,7 @@ \n* (internal, test): Stop testing IR generation snapshots by @dsinghvi in https://github.com/fern-api/fern/pull/3508\r\ \n* fix, python: pipe through the whole kit and caboodle for inlined unions\ \ by @armandobelardo in https://github.com/fern-api/fern/pull/3507\r\n* fix,\ - \ python: the SDK generator now generates disciminated unions correctlly by\ + \ python: the SDK generator now generates discriminated unions correctly by\ \ @armandobelardo in https://github.com/fern-api/fern/pull/3509\r\n* internal:\ \ release python generator RC by @armandobelardo in https://github.com/fern-api/fern/pull/3510\r\ \n* fix, ts, python: snippet template paper cuts by @armandobelardo in https://github.com/fern-api/fern/pull/3511\r\ @@ -2843,7 +2843,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* improvement: throw a better error when an invalid\ \ version is used by @armandobelardo in https://github.com/fern-api/fern/pull/3477\r\ - \n* (fix, go): Discrimninated unions always include discriminant by @amckinney\ + \n* (fix, go): Discriminated unions always include discriminant by @amckinney\ \ in https://github.com/fern-api/fern/pull/3479\r\n* (internal, feat): add \ \ mode to seed for running the generators directly from source by @dsinghvi\ \ in https://github.com/fern-api/fern/pull/3421\r\n* (fix, docs): improve docs\ @@ -2853,7 +2853,7 @@ \ in https://github.com/fern-api/fern/pull/3482\r\n* (chore): parse file upload\ \ and their descriptions by @dsinghvi in https://github.com/fern-api/fern/pull/3485\r\ \n* (feature, go): Add cursor and offset pagination by @amckinney in https://github.com/fern-api/fern/pull/3486\r\ - \n* (fix): redo docs for accordion, accorodion groups, callouts, card groups,\ + \n* (fix): redo docs for accordion, accordion groups, callouts, card groups,\ \ etc. by @dsinghvi in https://github.com/fern-api/fern/pull/3489\r\n* (fix,\ \ docs): document frames and endpoint req/res snippets by @dsinghvi in https://github.com/fern-api/fern/pull/3490\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.23.1...0.23.2" @@ -3625,7 +3625,7 @@ \ query params correctly in the TypeScript SDK by @dsinghvi in https://github.com/fern-api/fern/pull/3071\r\ \n* fix, ruby: Ensure the name passed into the `X-Fern-SDK-Name` header is the\ \ name of the gem, not the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073\r\ - \n* (fix, typescript): sdk code snippets dont render empty dicts for parameters\ + \n* (fix, typescript): sdk code snippets don't render empty dicts for parameters\ \ with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074\r\ \n* (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072\r\ \n* (chore, internal): move `docs-config` to use local typescript sdk gen by\ @@ -3743,7 +3743,7 @@ \ in https://github.com/fern-api/fern/pull/3071\r\n* (fix, ruby): Ensure the\ \ name passed into the `X-Fern-SDK-Name` header is the name of the gem, not\ \ the client class by @armandobelardo in https://github.com/fern-api/fern/pull/3073\r\ - \n* (fix, typescript): sdk code snippets dont render empty dicts for parameters\ + \n* (fix, typescript): sdk code snippets don't render empty dicts for parameters\ \ with default values by @dsinghvi in https://github.com/fern-api/fern/pull/3074\r\ \n* (chore): Refactor Pagination IR to support offset by @amckinney in https://github.com/fern-api/fern/pull/3072\r\ \n* (chore, internal): move `docs-config` to use local typescript sdk gen by\ @@ -4069,7 +4069,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (feature): OpenAPI importer supports format `json-string`\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/2827\r\n ```yaml\r\n\ - \ MySchema: \r\n type: striing\r\n format: json-string # <---- OpenAPI\ + \ MySchema: \r\n type: string\r\n format: json-string # <---- OpenAPI\ \ importer handles this\r\n ```\r\n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.16.40...0.16.41" type: chore createdAt: "2024-01-29" @@ -4088,7 +4088,7 @@ - changelogEntry: - summary: "## What's Changed\r\n* (release): support scanning env variable for\ \ auth in python sdk generator 0.8.1 by @dsinghvi in https://github.com/fern-api/fern/pull/2811\r\ - \n* (feature): introduce nuget ouptut location by @dsinghvi in https://github.com/fern-api/fern/pull/2812\r\ + \n* (feature): introduce nuget output location by @dsinghvi in https://github.com/fern-api/fern/pull/2812\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.16.38...0.16.39" type: chore createdAt: "2024-01-26" @@ -4510,7 +4510,7 @@ irVersion: 32 version: 0.15.13 - changelogEntry: - - summary: "## What's Changed\r\n* internal: seed supports configurable ouptut mode\ + - summary: "## What's Changed\r\n* internal: seed supports configurable output mode\ \ by @dsinghvi in https://github.com/fern-api/fern/pull/2430\r\n* internal:\ \ add examples to literal-headers test definition by @amckinney in https://github.com/fern-api/fern/pull/2437\r\ \n* internal: seed fixtures are dynamic by @amckinney in https://github.com/fern-api/fern/pull/2440\r\ @@ -4739,7 +4739,7 @@ irVersion: 30 version: 0.15.0-rc81 - changelogEntry: - - summary: "## What's Changed\r\n* fix: dont compare root api files if dependency\ + - summary: "## What's Changed\r\n* fix: don't compare root api files if dependency\ \ has no endpoints by @dsinghvi in https://github.com/fern-api/fern/pull/2282\r\ \n\r\n\r\n**Full Changelog**: https://github.com/fern-api/fern/compare/0.15.0-rc79...0.15.0-rc80" type: chore @@ -5094,7 +5094,7 @@ irVersion: 26 version: 0.15.0-rc22 - changelogEntry: - - summary: "- Only set GA availablity if explicitly defined in the API Definition + - summary: "- Only set GA availability if explicitly defined in the API Definition (@dsinghvi) " type: chore createdAt: "2023-09-17" @@ -6963,7 +6963,7 @@ version: 0.5.1 - changelogEntry: - summary: "## What's Changed\r\n* Support http streams in responses by @zachkirsch\ - \ in https://github.com/fern-api/fern/pull/1365\r\n* fix: introduce undiscrminated\ + \ in https://github.com/fern-api/fern/pull/1365\r\n* fix: introduce undiscriminated\ \ unions by @dsinghvi in https://github.com/fern-api/fern/pull/1367\r\n* Add\ \ release blocker for undiscriminated unions by @zachkirsch in https://github.com/fern-api/fern/pull/1369\r\ \n* Fix undiscriminated union rule by @zachkirsch in https://github.com/fern-api/fern/pull/1370\r\ diff --git a/packages/seed/src/commands/publish/publishCli.ts b/packages/seed/src/commands/publish/publishCli.ts index 11f5c55709c..7b92b914e95 100644 --- a/packages/seed/src/commands/publish/publishCli.ts +++ b/packages/seed/src/commands/publish/publishCli.ts @@ -58,8 +58,8 @@ export async function publishCli({ // Instance of PublishCommand configuration, leverage these commands outright const unparsedCommands = publishConfig.command; const commands = Array.isArray(unparsedCommands) ? unparsedCommands : [unparsedCommands]; - const versionSubsitution = publishConfig.versionSubstitution; - const subbedCommands = commands.map((command) => subVersion(command, publishVersion, versionSubsitution)); + const versionSubstitution = publishConfig.versionSubstitution; + const subbedCommands = commands.map((command) => subVersion(command, publishVersion, versionSubstitution)); let workingDirectory = cliWorkspace.absolutePathToWorkspace; if (publishConfig.workingDirectory) { diff --git a/packages/seed/src/commands/publish/publishGenerator.ts b/packages/seed/src/commands/publish/publishGenerator.ts index 089726f12d1..826a60ae5ea 100644 --- a/packages/seed/src/commands/publish/publishGenerator.ts +++ b/packages/seed/src/commands/publish/publishGenerator.ts @@ -72,8 +72,8 @@ export async function publishGenerator({ // Instance of PublishCommand configuration, leverage these commands outright const unparsedCommands = publishConfig.command; const commands = Array.isArray(unparsedCommands) ? unparsedCommands : [unparsedCommands]; - const versionSubsitution = publishConfig.versionSubstitution; - const subbedCommands = commands.map((command) => subVersion(command, publishVersion, versionSubsitution)); + const versionSubstitution = publishConfig.versionSubstitution; + const subbedCommands = commands.map((command) => subVersion(command, publishVersion, versionSubstitution)); await runCommands(subbedCommands, context, workingDirectory); } } diff --git a/packages/seed/src/config/api/resources/features/types/GeneratorFeatures.ts b/packages/seed/src/config/api/resources/features/types/GeneratorFeatures.ts index edbd74f7a97..8918673aaad 100644 --- a/packages/seed/src/config/api/resources/features/types/GeneratorFeatures.ts +++ b/packages/seed/src/config/api/resources/features/types/GeneratorFeatures.ts @@ -34,7 +34,7 @@ export interface GeneratorFeatures { */ websocket: FernSeedConfig.FeatureImplementation; /** - * Primarly used for chat completion. + * Primarily used for chat completion. * Support streaming json responses, and provide a way to consume them. This */ streamingJson: FernSeedConfig.FeatureImplementation; @@ -63,13 +63,13 @@ export interface GeneratorFeatures { */ additionalProperties: FernSeedConfig.FeatureImplementation; /** - * The SDK should generate an API reference markdown file (refrence.md at the root level) that shows all the endpoints, their documentation, + * The SDK should generate an API reference markdown file (reference.md at the root level) that shows all the endpoints, their documentation, * their parameters, and their responses. */ apiReferenceGeneration: FernSeedConfig.FeatureImplementation; /** - * Whether the generator supports reading the whitelable configuration. - * If true, the generator will not mention `fern` in the hader of the + * Whether the generator supports reading the whitelabel configuration. + * If true, the generator will not mention `fern` in the header of the * generated code. * * Instead of `This file was auto-generated by Fern from our API Definition`, diff --git a/packages/seed/src/utils/publishUtilities.ts b/packages/seed/src/utils/publishUtilities.ts index c12de4b045c..16c082a28cc 100644 --- a/packages/seed/src/utils/publishUtilities.ts +++ b/packages/seed/src/utils/publishUtilities.ts @@ -5,8 +5,8 @@ import { runScript } from "../runScript"; // Replace the version string within the command, if one is specified // The idea here is to turn a command like "npm publish --tag $VERSION" into "npm publish --tag v1.0.0" -export function subVersion(command: string, version: string, versionSubsitution?: string): string { - return versionSubsitution ? command.replace(versionSubsitution, version) : command; +export function subVersion(command: string, version: string, versionSubstitution?: string): string { + return versionSubstitution ? command.replace(versionSubstitution, version) : command; } export async function runCommands(commands: string[], context: TaskContext, cwd: string) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a3bd6d5e84..28bba0858a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,6 +71,9 @@ importers: chalk: specifier: ^5.3.0 version: 5.3.0 + cspell: + specifier: ^8.17.2 + version: 8.17.2 depcheck: specifier: ^1.4.7 version: 1.4.7 @@ -8466,6 +8469,225 @@ packages: peerDependencies: stylelint: ^14.12.1 || ^15.10.3 || ^16.10.0 + '@cspell/cspell-bundled-dicts@8.17.2': + resolution: {integrity: sha512-t+DQtruJF2cYfXF5GC4F0O/PQR04hL5WH55R9oOaor5i7K8ejbw6+jex2LB0XbZFf3qBhXNSnMPuM3b/113LnA==} + engines: {node: '>=18'} + + '@cspell/cspell-json-reporter@8.17.2': + resolution: {integrity: sha512-9QFzuSApaK7SYB50iCTRIUDjFZf6DXTFj8+qTR2cky+/YmEcHDpJieJVCd3STONO4m2JyqIsV7faEuA6M0YcHg==} + engines: {node: '>=18'} + + '@cspell/cspell-pipe@8.17.2': + resolution: {integrity: sha512-LOTKK+hZSUc7vaN8SBEOcv+9dMYbo84awbsjjdI+HkKVBfTt3Lzlu6IJImw39L6pTDAJ1ZxOUdWO89jcxpyihg==} + engines: {node: '>=18'} + + '@cspell/cspell-resolver@8.17.2': + resolution: {integrity: sha512-Z2ndlzVIiXOCBnQby9q+OXcxeddiuCi//pnhO9Jf6Ixgthn+Yg7bwzAnHu+CM1SJaQnZCntGyimdxfojm+WDdA==} + engines: {node: '>=18'} + + '@cspell/cspell-service-bus@8.17.2': + resolution: {integrity: sha512-Cp4kVxJRyyDRd5RVTASlu+ygWG+dgy6GyH7lzb6P8SOXt1mxzCBK6Q5Dc1XHAsvhRaLrnMziCO/5Pj9/0DKs6w==} + engines: {node: '>=18'} + + '@cspell/cspell-types@8.17.2': + resolution: {integrity: sha512-4kMBhX92p0pchEzYTpyLCoe/bUJ29YYvMINTeHTd//hLQh0ZAyMGY1opDm1tqaXX0qpYmWG60KcvN4fCR0i6lw==} + engines: {node: '>=18'} + + '@cspell/dict-ada@4.1.0': + resolution: {integrity: sha512-7SvmhmX170gyPd+uHXrfmqJBY5qLcCX8kTGURPVeGxmt8XNXT75uu9rnZO+jwrfuU2EimNoArdVy5GZRGljGNg==} + + '@cspell/dict-al@1.1.0': + resolution: {integrity: sha512-PtNI1KLmYkELYltbzuoztBxfi11jcE9HXBHCpID2lou/J4VMYKJPNqe4ZjVzSI9NYbMnMnyG3gkbhIdx66VSXg==} + + '@cspell/dict-aws@4.0.9': + resolution: {integrity: sha512-bDYdnnJGwSkIZ4gzrauu7qzOs/ZAY/FnU4k11LgdMI8BhwMfsbsy2EI1iS+sD/BI5ZnNT9kU5YR3WADeNOmhRg==} + + '@cspell/dict-bash@4.2.0': + resolution: {integrity: sha512-HOyOS+4AbCArZHs/wMxX/apRkjxg6NDWdt0jF9i9XkvJQUltMwEhyA2TWYjQ0kssBsnof+9amax2lhiZnh3kCg==} + + '@cspell/dict-companies@3.1.13': + resolution: {integrity: sha512-EAaFMxnSG4eQKup9D81EnWAYIzorLWG7b7Zzf+Suu0bVeFBpCYESss/EWtnmb5ZZNfKAGxtoMqfL3vRfyJERIQ==} + + '@cspell/dict-cpp@6.0.3': + resolution: {integrity: sha512-OFrVXdxCeGKnon36Pe3yFjBuY4kzzEwWFf3vDz+cJTodZDkjFkBifQeTtt5YfimgF8cfAJZXkBCsxjipAgmAiw==} + + '@cspell/dict-cryptocurrencies@5.0.4': + resolution: {integrity: sha512-6iFu7Abu+4Mgqq08YhTKHfH59mpMpGTwdzDB2Y8bbgiwnGFCeoiSkVkgLn1Kel2++hYcZ8vsAW/MJS9oXxuMag==} + + '@cspell/dict-csharp@4.0.6': + resolution: {integrity: sha512-w/+YsqOknjQXmIlWDRmkW+BHBPJZ/XDrfJhZRQnp0wzpPOGml7W0q1iae65P2AFRtTdPKYmvSz7AL5ZRkCnSIw==} + + '@cspell/dict-css@4.0.17': + resolution: {integrity: sha512-2EisRLHk6X/PdicybwlajLGKF5aJf4xnX2uuG5lexuYKt05xV/J/OiBADmi8q9obhxf1nesrMQbqAt+6CsHo/w==} + + '@cspell/dict-dart@2.3.0': + resolution: {integrity: sha512-1aY90lAicek8vYczGPDKr70pQSTQHwMFLbmWKTAI6iavmb1fisJBS1oTmMOKE4ximDf86MvVN6Ucwx3u/8HqLg==} + + '@cspell/dict-data-science@2.0.7': + resolution: {integrity: sha512-XhAkK+nSW6zmrnWzusmZ1BpYLc62AWYHZc2p17u4nE2Z9XG5DleG55PCZxXQTKz90pmwlhFM9AfpkJsYaBWATA==} + + '@cspell/dict-django@4.1.4': + resolution: {integrity: sha512-fX38eUoPvytZ/2GA+g4bbdUtCMGNFSLbdJJPKX2vbewIQGfgSFJKY56vvcHJKAvw7FopjvgyS/98Ta9WN1gckg==} + + '@cspell/dict-docker@1.1.12': + resolution: {integrity: sha512-6d25ZPBnYZaT9D9An/x6g/4mk542R8bR3ipnby3QFCxnfdd6xaWiTcwDPsCgwN2aQZIQ1jX/fil9KmBEqIK/qA==} + + '@cspell/dict-dotnet@5.0.9': + resolution: {integrity: sha512-JGD6RJW5sHtO5lfiJl11a5DpPN6eKSz5M1YBa1I76j4dDOIqgZB6rQexlDlK1DH9B06X4GdDQwdBfnpAB0r2uQ==} + + '@cspell/dict-elixir@4.0.7': + resolution: {integrity: sha512-MAUqlMw73mgtSdxvbAvyRlvc3bYnrDqXQrx5K9SwW8F7fRYf9V4vWYFULh+UWwwkqkhX9w03ZqFYRTdkFku6uA==} + + '@cspell/dict-en-common-misspellings@2.0.9': + resolution: {integrity: sha512-O/jAr1VNtuyCFckbTmpeEf43ZFWVD9cJFvWaA6rO2IVmLirJViHWJUyBZOuQcesSplzEIw80MAYmnK06/MDWXQ==} + + '@cspell/dict-en-gb@1.1.33': + resolution: {integrity: sha512-tKSSUf9BJEV+GJQAYGw5e+ouhEe2ZXE620S7BLKe3ZmpnjlNG9JqlnaBhkIMxKnNFkLY2BP/EARzw31AZnOv4g==} + + '@cspell/dict-en_us@4.3.30': + resolution: {integrity: sha512-p0G5fByj5fUnMyFUlkN3kaqE3nuQkqpYV47Gn9n8k2TszsdLY55xj9UoFE4YIcjOiyU1bR/YDJ5daiPMYXTJ/A==} + + '@cspell/dict-filetypes@3.0.10': + resolution: {integrity: sha512-JEN3627joBVtpa1yfkdN9vz1Z129PoKGHBKjXCEziJvf2Zt1LeULWYYYg/O6pzRR4yzRa5YbXDTuyrN7vX7DFg==} + + '@cspell/dict-flutter@1.1.0': + resolution: {integrity: sha512-3zDeS7zc2p8tr9YH9tfbOEYfopKY/srNsAa+kE3rfBTtQERAZeOhe5yxrnTPoufctXLyuUtcGMUTpxr3dO0iaA==} + + '@cspell/dict-fonts@4.0.4': + resolution: {integrity: sha512-cHFho4hjojBcHl6qxidl9CvUb492IuSk7xIf2G2wJzcHwGaCFa2o3gRcxmIg1j62guetAeDDFELizDaJlVRIOg==} + + '@cspell/dict-fsharp@1.1.0': + resolution: {integrity: sha512-oguWmHhGzgbgbEIBKtgKPrFSVAFtvGHaQS0oj+vacZqMObwkapcTGu7iwf4V3Bc2T3caf0QE6f6rQfIJFIAVsw==} + + '@cspell/dict-fullstack@3.2.3': + resolution: {integrity: sha512-62PbndIyQPH11mAv0PyiyT0vbwD0AXEocPpHlCHzfb5v9SspzCCbzQ/LIBiFmyRa+q5LMW35CnSVu6OXdT+LKg==} + + '@cspell/dict-gaming-terms@1.1.0': + resolution: {integrity: sha512-46AnDs9XkgJ2f1Sqol1WgfJ8gOqp60fojpc9Wxch7x+BA63g4JfMV5/M5x0sI0TLlLY8EBSglcr8wQF/7C80AQ==} + + '@cspell/dict-git@3.0.4': + resolution: {integrity: sha512-C44M+m56rYn6QCsLbiKiedyPTMZxlDdEYAsPwwlL5bhMDDzXZ3Ic8OCQIhMbiunhCOJJT+er4URmOmM+sllnjg==} + + '@cspell/dict-golang@6.0.18': + resolution: {integrity: sha512-Mt+7NwfodDwUk7423DdaQa0YaA+4UoV3XSxQwZioqjpFBCuxfvvv4l80MxCTAAbK6duGj0uHbGTwpv8fyKYPKg==} + + '@cspell/dict-google@1.0.8': + resolution: {integrity: sha512-BnMHgcEeaLyloPmBs8phCqprI+4r2Jb8rni011A8hE+7FNk7FmLE3kiwxLFrcZnnb7eqM0agW4zUaNoB0P+z8A==} + + '@cspell/dict-haskell@4.0.5': + resolution: {integrity: sha512-s4BG/4tlj2pPM9Ha7IZYMhUujXDnI0Eq1+38UTTCpatYLbQqDwRFf2KNPLRqkroU+a44yTUAe0rkkKbwy4yRtQ==} + + '@cspell/dict-html-symbol-entities@4.0.3': + resolution: {integrity: sha512-aABXX7dMLNFdSE8aY844X4+hvfK7977sOWgZXo4MTGAmOzR8524fjbJPswIBK7GaD3+SgFZ2yP2o0CFvXDGF+A==} + + '@cspell/dict-html@4.0.11': + resolution: {integrity: sha512-QR3b/PB972SRQ2xICR1Nw/M44IJ6rjypwzA4jn+GH8ydjAX9acFNfc+hLZVyNe0FqsE90Gw3evLCOIF0vy1vQw==} + + '@cspell/dict-java@5.0.11': + resolution: {integrity: sha512-T4t/1JqeH33Raa/QK/eQe26FE17eUCtWu+JsYcTLkQTci2dk1DfcIKo8YVHvZXBnuM43ATns9Xs0s+AlqDeH7w==} + + '@cspell/dict-julia@1.1.0': + resolution: {integrity: sha512-CPUiesiXwy3HRoBR3joUseTZ9giFPCydSKu2rkh6I2nVjXnl5vFHzOMLXpbF4HQ1tH2CNfnDbUndxD+I+7eL9w==} + + '@cspell/dict-k8s@1.0.10': + resolution: {integrity: sha512-313haTrX9prep1yWO7N6Xw4D6tvUJ0Xsx+YhCP+5YrrcIKoEw5Rtlg8R4PPzLqe6zibw6aJ+Eqq+y76Vx5BZkw==} + + '@cspell/dict-kotlin@1.1.0': + resolution: {integrity: sha512-vySaVw6atY7LdwvstQowSbdxjXG6jDhjkWVWSjg1XsUckyzH1JRHXe9VahZz1i7dpoFEUOWQrhIe5B9482UyJQ==} + + '@cspell/dict-latex@4.0.3': + resolution: {integrity: sha512-2KXBt9fSpymYHxHfvhUpjUFyzrmN4c4P8mwIzweLyvqntBT3k0YGZJSriOdjfUjwSygrfEwiuPI1EMrvgrOMJw==} + + '@cspell/dict-lorem-ipsum@4.0.4': + resolution: {integrity: sha512-+4f7vtY4dp2b9N5fn0za/UR0kwFq2zDtA62JCbWHbpjvO9wukkbl4rZg4YudHbBgkl73HRnXFgCiwNhdIA1JPw==} + + '@cspell/dict-lua@4.0.7': + resolution: {integrity: sha512-Wbr7YSQw+cLHhTYTKV6cAljgMgcY+EUAxVIZW3ljKswEe4OLxnVJ7lPqZF5JKjlXdgCjbPSimsHqyAbC5pQN/Q==} + + '@cspell/dict-makefile@1.0.4': + resolution: {integrity: sha512-E4hG/c0ekPqUBvlkrVvzSoAA+SsDA9bLi4xSV3AXHTVru7Y2bVVGMPtpfF+fI3zTkww/jwinprcU1LSohI3ylw==} + + '@cspell/dict-markdown@2.0.9': + resolution: {integrity: sha512-j2e6Eg18BlTb1mMP1DkyRFMM/FLS7qiZjltpURzDckB57zDZbUyskOFdl4VX7jItZZEeY0fe22bSPOycgS1Z5A==} + peerDependencies: + '@cspell/dict-css': ^4.0.17 + '@cspell/dict-html': ^4.0.11 + '@cspell/dict-html-symbol-entities': ^4.0.3 + '@cspell/dict-typescript': ^3.2.0 + + '@cspell/dict-monkeyc@1.0.10': + resolution: {integrity: sha512-7RTGyKsTIIVqzbvOtAu6Z/lwwxjGRtY5RkKPlXKHEoEAgIXwfDxb5EkVwzGQwQr8hF/D3HrdYbRT8MFBfsueZw==} + + '@cspell/dict-node@5.0.6': + resolution: {integrity: sha512-CEbhPCpxGvRNByGolSBTrXXW2rJA4bGqZuTx1KKO85mwR6aadeOmUE7xf/8jiCkXSy+qvr9aJeh+jlfXcsrziQ==} + + '@cspell/dict-npm@5.1.24': + resolution: {integrity: sha512-yAyyHetElLR236sqWQkBtiLbzCGexV5zzLMHyQPptKQQK88BTQR5f9wXW2EtSgJw/4gUchpSWQWxMlkIfK/iQQ==} + + '@cspell/dict-php@4.0.14': + resolution: {integrity: sha512-7zur8pyncYZglxNmqsRycOZ6inpDoVd4yFfz1pQRe5xaRWMiK3Km4n0/X/1YMWhh3e3Sl/fQg5Axb2hlN68t1g==} + + '@cspell/dict-powershell@5.0.14': + resolution: {integrity: sha512-ktjjvtkIUIYmj/SoGBYbr3/+CsRGNXGpvVANrY0wlm/IoGlGywhoTUDYN0IsGwI2b8Vktx3DZmQkfb3Wo38jBA==} + + '@cspell/dict-public-licenses@2.0.13': + resolution: {integrity: sha512-1Wdp/XH1ieim7CadXYE7YLnUlW0pULEjVl9WEeziZw3EKCAw8ZI8Ih44m4bEa5VNBLnuP5TfqC4iDautAleQzQ==} + + '@cspell/dict-python@4.2.15': + resolution: {integrity: sha512-VNXhj0Eh+hdHN89MgyaoSAexBQKmYtJaMhucbMI7XmBs4pf8fuFFN3xugk51/A4TZJr8+RImdFFsGMOw+I4bDA==} + + '@cspell/dict-r@2.1.0': + resolution: {integrity: sha512-k2512wgGG0lTpTYH9w5Wwco+lAMf3Vz7mhqV8+OnalIE7muA0RSuD9tWBjiqLcX8zPvEJr4LdgxVju8Gk3OKyA==} + + '@cspell/dict-ruby@5.0.7': + resolution: {integrity: sha512-4/d0hcoPzi5Alk0FmcyqlzFW9lQnZh9j07MJzPcyVO62nYJJAGKaPZL2o4qHeCS/od/ctJC5AHRdoUm0ktsw6Q==} + + '@cspell/dict-rust@4.0.11': + resolution: {integrity: sha512-OGWDEEzm8HlkSmtD8fV3pEcO2XBpzG2XYjgMCJCRwb2gRKvR+XIm6Dlhs04N/K2kU+iH8bvrqNpM8fS/BFl0uw==} + + '@cspell/dict-scala@5.0.7': + resolution: {integrity: sha512-yatpSDW/GwulzO3t7hB5peoWwzo+Y3qTc0pO24Jf6f88jsEeKmDeKkfgPbYuCgbE4jisGR4vs4+jfQZDIYmXPA==} + + '@cspell/dict-shell@1.1.0': + resolution: {integrity: sha512-D/xHXX7T37BJxNRf5JJHsvziFDvh23IF/KvkZXNSh8VqcRdod3BAz9VGHZf6VDqcZXr1VRqIYR3mQ8DSvs3AVQ==} + + '@cspell/dict-software-terms@4.2.4': + resolution: {integrity: sha512-GRkuaFfjFHPYynyRMuisKyE3gRiVK0REClRWfnH9+5iCs5TKDURsMpWJGNsgQ6N5jAKKrtWXVKjepkDHjMldjQ==} + + '@cspell/dict-sql@2.2.0': + resolution: {integrity: sha512-MUop+d1AHSzXpBvQgQkCiok8Ejzb+nrzyG16E8TvKL2MQeDwnIvMe3bv90eukP6E1HWb+V/MA/4pnq0pcJWKqQ==} + + '@cspell/dict-svelte@1.0.6': + resolution: {integrity: sha512-8LAJHSBdwHCoKCSy72PXXzz7ulGROD0rP1CQ0StOqXOOlTUeSFaJJlxNYjlONgd2c62XBQiN2wgLhtPN+1Zv7Q==} + + '@cspell/dict-swift@2.0.5': + resolution: {integrity: sha512-3lGzDCwUmnrfckv3Q4eVSW3sK3cHqqHlPprFJZD4nAqt23ot7fic5ALR7J4joHpvDz36nHX34TgcbZNNZOC/JA==} + + '@cspell/dict-terraform@1.1.0': + resolution: {integrity: sha512-G55pcUUxeXAhejstmD35B47SkFd4uqCQimc+CMgq8Nx0dr03guL2iMsz8faRWQGkCnGimX8S91rbOhDv9p/heg==} + + '@cspell/dict-typescript@3.2.0': + resolution: {integrity: sha512-Pk3zNePLT8qg51l0M4g1ISowYAEGxTuNfZlgkU5SvHa9Cu7x/BWoyYq9Fvc3kAyoisCjRPyvWF4uRYrPitPDFw==} + + '@cspell/dict-vue@3.0.4': + resolution: {integrity: sha512-0dPtI0lwHcAgSiQFx8CzvqjdoXROcH+1LyqgROCpBgppommWpVhbQ0eubnKotFEXgpUCONVkeZJ6Ql8NbTEu+w==} + + '@cspell/dynamic-import@8.17.2': + resolution: {integrity: sha512-n3AVbyBlTn/pLtYK62mqgDfJIuQHUTY/k8SMUCjyjfgoqd3LcKhS1PmbLfDWPMTODK30cSMMTLejjy2bL6ksEw==} + engines: {node: '>=18.0'} + + '@cspell/filetypes@8.17.2': + resolution: {integrity: sha512-2B+dB4Ls2xiOjg+vEEbAuJTHtMfXSihVzfLGnj9+qUfq47iqrz4ZBvCOfZhYdiVaaZJoZUgIw8ljrUfqFzYDAg==} + engines: {node: '>=18'} + + '@cspell/strong-weak-map@8.17.2': + resolution: {integrity: sha512-LbbhdVwtqyJ71X+O7e2PqpDp7zLiY8jmW2CJFLjZYWTUawgav2bpwECGq6O9Gnwqe+fj7yWxGJFDSpXQcCJQAw==} + engines: {node: '>=18'} + + '@cspell/url@8.17.2': + resolution: {integrity: sha512-yy4eYWNX2iutXmy4Igbn/hL/NYaNt94DylohPtgVr0Zxnn/AAArt9Bv1KXPpjB8VFy2wzzPzWmZ+MWDUVpHCbg==} + engines: {node: '>=18.0'} + '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -10209,6 +10431,9 @@ packages: resolution: {integrity: sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==} engines: {node: '>= 0.4'} + array-timsort@1.0.3: + resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==} + array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -10467,6 +10692,10 @@ packages: resolution: {integrity: sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==} engines: {node: '>=12'} + chalk-template@1.1.0: + resolution: {integrity: sha512-T2VJbcDuZQ0Tb2EWwSotMPJjgpy1/tGee1BTpUNsGZ/qgNjV2t7Mvu+d4600U564nbLesN1x2dPL+xii174Ekg==} + engines: {node: '>=14.16'} + chalk@2.3.0: resolution: {integrity: sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==} engines: {node: '>=4'} @@ -10479,6 +10708,10 @@ packages: resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + chalk@5.4.1: + resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + char-regex@1.0.2: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} engines: {node: '>=10'} @@ -10539,6 +10772,10 @@ packages: cjs-module-lexer@1.2.2: resolution: {integrity: sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==} + clear-module@4.1.2: + resolution: {integrity: sha512-LWAxzHqdHsAZlPlEyJ2Poz6AIs384mPeqLVCru2p0BrP9G/kVGuhNyZYClLO6cXlnuJjzC8xtsJIuMjKqLXoAw==} + engines: {node: '>=8'} + cli-boxes@3.0.0: resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} engines: {node: '>=10'} @@ -10624,6 +10861,10 @@ packages: resolution: {integrity: sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==} engines: {node: '>=16'} + commander@13.1.0: + resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==} + engines: {node: '>=18'} + commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -10635,6 +10876,10 @@ packages: resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} engines: {node: '>= 12'} + comment-json@4.2.5: + resolution: {integrity: sha512-bKw/r35jR3HGt5PEPm1ljsQQGyCrR8sFGNiN5L+ykDHdpO8Smxkrkla9Yi6NkQyUrb8V54PGhfMs6NrIwtxtdw==} + engines: {node: '>= 6'} + concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -10715,6 +10960,45 @@ packages: resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} + cspell-config-lib@8.17.2: + resolution: {integrity: sha512-g08lRd/smLk2je0j7HlCjdDa0dSTyI2oRP3gScWlsyXjb4NSr9qO0Wzyn5BfPgrqFdS/z4dXbHe+tnLQZCt9iQ==} + engines: {node: '>=18'} + + cspell-dictionary@8.17.2: + resolution: {integrity: sha512-2JC9RRsZruCs3AHId/8X63fSxDoF94dleRp8y/dXS9LIX7NruofohUJwzc/3tlgzCWWdaek1RXhO5xaYX74QtA==} + engines: {node: '>=18'} + + cspell-gitignore@8.17.2: + resolution: {integrity: sha512-zCTTN30zV96LkZmUDrLamEHpLLUGohKglKJ4iXoHQC8pDU3xTsV2qzeCQjM9SEmU3VbE1TzWq+vj0fslasv6pA==} + engines: {node: '>=18'} + hasBin: true + + cspell-glob@8.17.2: + resolution: {integrity: sha512-MTgrWX12oY8Pq/M3PEYCTHwD6w6l+DPtBWm958nhR4dboUbwi/3KfqCtdorkhnuClqLDQuuZHp0uGBXB4cdQrw==} + engines: {node: '>=18'} + + cspell-grammar@8.17.2: + resolution: {integrity: sha512-Asg5XRvrg2yHCvBwzARBPSwI4P5/unN+bKBlxqFazHgR72WJE+ASeobfUNfGi/RxJA2+m0hO91oYtvq6LfK52w==} + engines: {node: '>=18'} + hasBin: true + + cspell-io@8.17.2: + resolution: {integrity: sha512-IUdhbO6gsWYiM2dgudFJQTfnFCDYjLOqal3SxH5o8oOWeu5iIZ+s3N8E1odz0L5zF2Go7zDQSKvPr7Y9OOoRfw==} + engines: {node: '>=18'} + + cspell-lib@8.17.2: + resolution: {integrity: sha512-ZgkTvGh9FO+R3v5TaTqlrJEylWyZhNOzbtrQ5W35Hb3tZ9IJJklxjlcGe+gbFsjGi56kLj6c5L2NR7YX/Fdu5Q==} + engines: {node: '>=18'} + + cspell-trie-lib@8.17.2: + resolution: {integrity: sha512-Bw9q8EWFihkQGo8fNdfkUqYOTsC161+wrQxR7m74K4bKEmQgm0mS0sLHKUwxEOZVGGLmIw9dMQl+8WnTgqOaMQ==} + engines: {node: '>=18'} + + cspell@8.17.2: + resolution: {integrity: sha512-y+INkxDa+M9f+gsyyMLjKh1tF20r2g5Gn22peSRJglrNLQtmDuRtDT9vyDHANXZcH5g6pHDnENQu/+P2Tiyu8Q==} + engines: {node: '>=18'} + hasBin: true + css-functions-list@3.2.1: resolution: {integrity: sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==} engines: {node: '>=12 || >=16'} @@ -11033,6 +11317,10 @@ packages: resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} engines: {node: '>=6'} + env-paths@3.0.0: + resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -11360,6 +11648,10 @@ packages: fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + fast-equals@5.2.2: + resolution: {integrity: sha512-V7/RktU11J3I36Nwq2JnZEM7tNm17eBJz+u25qdxBZeCKiX6BkVSZQjwWIr+IobgnZy+ag73tTZgZi7tr0LrBw==} + engines: {node: '>=6.0.0'} + fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} @@ -11408,6 +11700,10 @@ packages: resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} engines: {node: '>=16.0.0'} + file-entry-cache@9.1.0: + resolution: {integrity: sha512-/pqPFG+FdxWQj+/WSuzXSDaNzxgTLr/OrR1QuqfEZzDakpdYE70PwUxL7BPUa8hpjbvY1+qvCl8k+8Tq34xJgg==} + engines: {node: '>=18'} + file-type@19.0.0: resolution: {integrity: sha512-s7cxa7/leUWLiXO78DVVfBVse+milos9FitauDLG1pI7lNaJ2+5lzPnr2N24ym+84HVwJL6hVuGfgVE+ALvU8Q==} engines: {node: '>=18'} @@ -11435,6 +11731,10 @@ packages: resolution: {integrity: sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==} engines: {node: '>= 0.8'} + find-up-simple@1.0.0: + resolution: {integrity: sha512-q7Us7kcjj2VMePAa02hDAF6d+MzsdsAWEwYyOpwUtlerRBkOEPBCRZrAV4XfcSN8fHAgaD0hP7miwoay6DCprw==} + engines: {node: '>=18'} + find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} @@ -11459,9 +11759,16 @@ packages: resolution: {integrity: sha512-EryKbCE/wxpxKniQlyas6PY1I9vwtF3uCBweX+N8KYTCn3Y12RTGtQAJ/bd5pl7kxUAc8v/R3Ake/N17OZiFqA==} engines: {node: '>=16'} + flat-cache@5.0.0: + resolution: {integrity: sha512-JrqFmyUl2PnPi1OvLyTVHnQvwQ0S+e6lGSwu8OkAZlSaNIZciTY2H/cOOROxsBA1m/LZNHDsqAgDZt6akWcjsQ==} + engines: {node: '>=18'} + flatted@3.2.9: resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} + flatted@3.3.2: + resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==} + follow-redirects@1.15.6: resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} engines: {node: '>=4.0'} @@ -11534,6 +11841,10 @@ packages: functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + gensequence@7.0.0: + resolution: {integrity: sha512-47Frx13aZh01afHJTB3zTtKIlFI6vWY+MYCN9Qpew6i52rfKjnhCF/l1YlC8UmEMvvntZZ6z4PiCcmyuedR2aQ==} + engines: {node: '>=18'} + gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} @@ -11562,6 +11873,10 @@ packages: resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} engines: {node: '>= 0.4'} + get-stdin@9.0.0: + resolution: {integrity: sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==} + engines: {node: '>=12'} + get-stream@2.3.1: resolution: {integrity: sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==} engines: {node: '>=0.10.0'} @@ -11611,6 +11926,10 @@ packages: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported + global-directory@4.0.1: + resolution: {integrity: sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==} + engines: {node: '>=18'} + global-modules@1.0.0: resolution: {integrity: sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==} engines: {node: '>=0.10.0'} @@ -11685,6 +12004,10 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} + has-own-prop@2.0.0: + resolution: {integrity: sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==} + engines: {node: '>=8'} + has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} @@ -11858,6 +12181,9 @@ packages: engines: {node: '>=8'} hasBin: true + import-meta-resolve@4.1.0: + resolution: {integrity: sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==} + imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -11876,6 +12202,10 @@ packages: ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + ini@4.1.1: + resolution: {integrity: sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + inline-style-parser@0.1.1: resolution: {integrity: sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==} @@ -12555,6 +12885,7 @@ packages: lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. lodash.isinteger@4.0.4: resolution: {integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==} @@ -13209,6 +13540,10 @@ packages: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} + parent-module@2.0.0: + resolution: {integrity: sha512-uo0Z9JJeWzv8BG+tRcapBKNJ0dro9cLyczGzulS6EfeyAdeC9sbojtW6XwvYxJkEne9En+J2XEl4zyglVeIwFg==} + engines: {node: '>=8'} + parse-entities@4.0.1: resolution: {integrity: sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==} @@ -13699,6 +14034,10 @@ packages: remark-stringify@11.0.0: resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} + repeat-string@1.6.1: + resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==} + engines: {node: '>=0.10'} + require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -14342,6 +14681,10 @@ packages: tinyexec@0.3.1: resolution: {integrity: sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ==} + tinyglobby@0.2.10: + resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==} + engines: {node: '>=12.0.0'} + tinyglobby@0.2.9: resolution: {integrity: sha512-8or1+BGEdk1Zkkw2ii16qSS7uVrQJPre5A9o/XkWPATkk23FZh/15BKFxPnlTy6vkljZxLqYCzzBMj30ZrSvjw==} engines: {node: '>=12.0.0'} @@ -14931,6 +15274,9 @@ packages: vscode-languageserver-textdocument@1.0.11: resolution: {integrity: sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==} + vscode-languageserver-textdocument@1.0.12: + resolution: {integrity: sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==} + vscode-languageserver-types@3.16.0: resolution: {integrity: sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==} @@ -15099,6 +15445,10 @@ packages: utf-8-validate: optional: true + xdg-basedir@5.1.0: + resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==} + engines: {node: '>=12'} + xml-name-validator@4.0.0: resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} engines: {node: '>=12'} @@ -15972,6 +16322,217 @@ snapshots: postcss-value-parser: 4.2.0 stylelint: 14.14.0 + '@cspell/cspell-bundled-dicts@8.17.2': + dependencies: + '@cspell/dict-ada': 4.1.0 + '@cspell/dict-al': 1.1.0 + '@cspell/dict-aws': 4.0.9 + '@cspell/dict-bash': 4.2.0 + '@cspell/dict-companies': 3.1.13 + '@cspell/dict-cpp': 6.0.3 + '@cspell/dict-cryptocurrencies': 5.0.4 + '@cspell/dict-csharp': 4.0.6 + '@cspell/dict-css': 4.0.17 + '@cspell/dict-dart': 2.3.0 + '@cspell/dict-data-science': 2.0.7 + '@cspell/dict-django': 4.1.4 + '@cspell/dict-docker': 1.1.12 + '@cspell/dict-dotnet': 5.0.9 + '@cspell/dict-elixir': 4.0.7 + '@cspell/dict-en-common-misspellings': 2.0.9 + '@cspell/dict-en-gb': 1.1.33 + '@cspell/dict-en_us': 4.3.30 + '@cspell/dict-filetypes': 3.0.10 + '@cspell/dict-flutter': 1.1.0 + '@cspell/dict-fonts': 4.0.4 + '@cspell/dict-fsharp': 1.1.0 + '@cspell/dict-fullstack': 3.2.3 + '@cspell/dict-gaming-terms': 1.1.0 + '@cspell/dict-git': 3.0.4 + '@cspell/dict-golang': 6.0.18 + '@cspell/dict-google': 1.0.8 + '@cspell/dict-haskell': 4.0.5 + '@cspell/dict-html': 4.0.11 + '@cspell/dict-html-symbol-entities': 4.0.3 + '@cspell/dict-java': 5.0.11 + '@cspell/dict-julia': 1.1.0 + '@cspell/dict-k8s': 1.0.10 + '@cspell/dict-kotlin': 1.1.0 + '@cspell/dict-latex': 4.0.3 + '@cspell/dict-lorem-ipsum': 4.0.4 + '@cspell/dict-lua': 4.0.7 + '@cspell/dict-makefile': 1.0.4 + '@cspell/dict-markdown': 2.0.9(@cspell/dict-css@4.0.17)(@cspell/dict-html-symbol-entities@4.0.3)(@cspell/dict-html@4.0.11)(@cspell/dict-typescript@3.2.0) + '@cspell/dict-monkeyc': 1.0.10 + '@cspell/dict-node': 5.0.6 + '@cspell/dict-npm': 5.1.24 + '@cspell/dict-php': 4.0.14 + '@cspell/dict-powershell': 5.0.14 + '@cspell/dict-public-licenses': 2.0.13 + '@cspell/dict-python': 4.2.15 + '@cspell/dict-r': 2.1.0 + '@cspell/dict-ruby': 5.0.7 + '@cspell/dict-rust': 4.0.11 + '@cspell/dict-scala': 5.0.7 + '@cspell/dict-shell': 1.1.0 + '@cspell/dict-software-terms': 4.2.4 + '@cspell/dict-sql': 2.2.0 + '@cspell/dict-svelte': 1.0.6 + '@cspell/dict-swift': 2.0.5 + '@cspell/dict-terraform': 1.1.0 + '@cspell/dict-typescript': 3.2.0 + '@cspell/dict-vue': 3.0.4 + + '@cspell/cspell-json-reporter@8.17.2': + dependencies: + '@cspell/cspell-types': 8.17.2 + + '@cspell/cspell-pipe@8.17.2': {} + + '@cspell/cspell-resolver@8.17.2': + dependencies: + global-directory: 4.0.1 + + '@cspell/cspell-service-bus@8.17.2': {} + + '@cspell/cspell-types@8.17.2': {} + + '@cspell/dict-ada@4.1.0': {} + + '@cspell/dict-al@1.1.0': {} + + '@cspell/dict-aws@4.0.9': {} + + '@cspell/dict-bash@4.2.0': + dependencies: + '@cspell/dict-shell': 1.1.0 + + '@cspell/dict-companies@3.1.13': {} + + '@cspell/dict-cpp@6.0.3': {} + + '@cspell/dict-cryptocurrencies@5.0.4': {} + + '@cspell/dict-csharp@4.0.6': {} + + '@cspell/dict-css@4.0.17': {} + + '@cspell/dict-dart@2.3.0': {} + + '@cspell/dict-data-science@2.0.7': {} + + '@cspell/dict-django@4.1.4': {} + + '@cspell/dict-docker@1.1.12': {} + + '@cspell/dict-dotnet@5.0.9': {} + + '@cspell/dict-elixir@4.0.7': {} + + '@cspell/dict-en-common-misspellings@2.0.9': {} + + '@cspell/dict-en-gb@1.1.33': {} + + '@cspell/dict-en_us@4.3.30': {} + + '@cspell/dict-filetypes@3.0.10': {} + + '@cspell/dict-flutter@1.1.0': {} + + '@cspell/dict-fonts@4.0.4': {} + + '@cspell/dict-fsharp@1.1.0': {} + + '@cspell/dict-fullstack@3.2.3': {} + + '@cspell/dict-gaming-terms@1.1.0': {} + + '@cspell/dict-git@3.0.4': {} + + '@cspell/dict-golang@6.0.18': {} + + '@cspell/dict-google@1.0.8': {} + + '@cspell/dict-haskell@4.0.5': {} + + '@cspell/dict-html-symbol-entities@4.0.3': {} + + '@cspell/dict-html@4.0.11': {} + + '@cspell/dict-java@5.0.11': {} + + '@cspell/dict-julia@1.1.0': {} + + '@cspell/dict-k8s@1.0.10': {} + + '@cspell/dict-kotlin@1.1.0': {} + + '@cspell/dict-latex@4.0.3': {} + + '@cspell/dict-lorem-ipsum@4.0.4': {} + + '@cspell/dict-lua@4.0.7': {} + + '@cspell/dict-makefile@1.0.4': {} + + '@cspell/dict-markdown@2.0.9(@cspell/dict-css@4.0.17)(@cspell/dict-html-symbol-entities@4.0.3)(@cspell/dict-html@4.0.11)(@cspell/dict-typescript@3.2.0)': + dependencies: + '@cspell/dict-css': 4.0.17 + '@cspell/dict-html': 4.0.11 + '@cspell/dict-html-symbol-entities': 4.0.3 + '@cspell/dict-typescript': 3.2.0 + + '@cspell/dict-monkeyc@1.0.10': {} + + '@cspell/dict-node@5.0.6': {} + + '@cspell/dict-npm@5.1.24': {} + + '@cspell/dict-php@4.0.14': {} + + '@cspell/dict-powershell@5.0.14': {} + + '@cspell/dict-public-licenses@2.0.13': {} + + '@cspell/dict-python@4.2.15': + dependencies: + '@cspell/dict-data-science': 2.0.7 + + '@cspell/dict-r@2.1.0': {} + + '@cspell/dict-ruby@5.0.7': {} + + '@cspell/dict-rust@4.0.11': {} + + '@cspell/dict-scala@5.0.7': {} + + '@cspell/dict-shell@1.1.0': {} + + '@cspell/dict-software-terms@4.2.4': {} + + '@cspell/dict-sql@2.2.0': {} + + '@cspell/dict-svelte@1.0.6': {} + + '@cspell/dict-swift@2.0.5': {} + + '@cspell/dict-terraform@1.1.0': {} + + '@cspell/dict-typescript@3.2.0': {} + + '@cspell/dict-vue@3.0.4': {} + + '@cspell/dynamic-import@8.17.2': + dependencies: + '@cspell/url': 8.17.2 + import-meta-resolve: 4.1.0 + + '@cspell/filetypes@8.17.2': {} + + '@cspell/strong-weak-map@8.17.2': {} + + '@cspell/url@8.17.2': {} + '@cspotcode/source-map-support@0.8.1': dependencies: '@jridgewell/trace-mapping': 0.3.9 @@ -17881,6 +18442,8 @@ snapshots: get-intrinsic: 1.2.4 is-string: 1.0.7 + array-timsort@1.0.3: {} + array-union@2.1.0: {} array.prototype.findlast@1.2.5: @@ -18224,6 +18787,10 @@ snapshots: loupe: 3.1.2 pathval: 2.0.0 + chalk-template@1.1.0: + dependencies: + chalk: 5.4.1 + chalk@2.3.0: dependencies: ansi-styles: 3.2.1 @@ -18237,6 +18804,8 @@ snapshots: chalk@5.3.0: {} + chalk@5.4.1: {} + char-regex@1.0.2: {} character-entities-html4@2.1.0: {} @@ -18286,6 +18855,11 @@ snapshots: cjs-module-lexer@1.2.2: {} + clear-module@4.1.2: + dependencies: + parent-module: 2.0.0 + resolve-from: 5.0.0 + cli-boxes@3.0.0: {} cli-cursor@3.1.0: @@ -18358,12 +18932,22 @@ snapshots: commander@11.0.0: {} + commander@13.1.0: {} + commander@2.20.3: {} commander@4.1.1: {} commander@8.3.0: {} + comment-json@4.2.5: + dependencies: + array-timsort: 1.0.3 + core-util-is: 1.0.3 + esprima: 4.0.1 + has-own-prop: 2.0.0 + repeat-string: 1.6.1 + concat-map@0.0.1: {} concat-stream@1.6.2: @@ -18464,6 +19048,95 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + cspell-config-lib@8.17.2: + dependencies: + '@cspell/cspell-types': 8.17.2 + comment-json: 4.2.5 + yaml: 2.3.3 + + cspell-dictionary@8.17.2: + dependencies: + '@cspell/cspell-pipe': 8.17.2 + '@cspell/cspell-types': 8.17.2 + cspell-trie-lib: 8.17.2 + fast-equals: 5.2.2 + + cspell-gitignore@8.17.2: + dependencies: + '@cspell/url': 8.17.2 + cspell-glob: 8.17.2 + cspell-io: 8.17.2 + find-up-simple: 1.0.0 + + cspell-glob@8.17.2: + dependencies: + '@cspell/url': 8.17.2 + micromatch: 4.0.8 + + cspell-grammar@8.17.2: + dependencies: + '@cspell/cspell-pipe': 8.17.2 + '@cspell/cspell-types': 8.17.2 + + cspell-io@8.17.2: + dependencies: + '@cspell/cspell-service-bus': 8.17.2 + '@cspell/url': 8.17.2 + + cspell-lib@8.17.2: + dependencies: + '@cspell/cspell-bundled-dicts': 8.17.2 + '@cspell/cspell-pipe': 8.17.2 + '@cspell/cspell-resolver': 8.17.2 + '@cspell/cspell-types': 8.17.2 + '@cspell/dynamic-import': 8.17.2 + '@cspell/filetypes': 8.17.2 + '@cspell/strong-weak-map': 8.17.2 + '@cspell/url': 8.17.2 + clear-module: 4.1.2 + comment-json: 4.2.5 + cspell-config-lib: 8.17.2 + cspell-dictionary: 8.17.2 + cspell-glob: 8.17.2 + cspell-grammar: 8.17.2 + cspell-io: 8.17.2 + cspell-trie-lib: 8.17.2 + env-paths: 3.0.0 + fast-equals: 5.2.2 + gensequence: 7.0.0 + import-fresh: 3.3.0 + resolve-from: 5.0.0 + vscode-languageserver-textdocument: 1.0.12 + vscode-uri: 3.0.8 + xdg-basedir: 5.1.0 + + cspell-trie-lib@8.17.2: + dependencies: + '@cspell/cspell-pipe': 8.17.2 + '@cspell/cspell-types': 8.17.2 + gensequence: 7.0.0 + + cspell@8.17.2: + dependencies: + '@cspell/cspell-json-reporter': 8.17.2 + '@cspell/cspell-pipe': 8.17.2 + '@cspell/cspell-types': 8.17.2 + '@cspell/dynamic-import': 8.17.2 + '@cspell/url': 8.17.2 + chalk: 5.4.1 + chalk-template: 1.1.0 + commander: 13.1.0 + cspell-dictionary: 8.17.2 + cspell-gitignore: 8.17.2 + cspell-glob: 8.17.2 + cspell-io: 8.17.2 + cspell-lib: 8.17.2 + fast-json-stable-stringify: 2.1.0 + file-entry-cache: 9.1.0 + get-stdin: 9.0.0 + semver: 7.6.3 + tinyglobby: 0.2.10 + css-functions-list@3.2.1: {} css-tree@2.3.1: @@ -18763,6 +19436,8 @@ snapshots: env-paths@2.2.1: {} + env-paths@3.0.0: {} + error-ex@1.3.2: dependencies: is-arrayish: 0.2.1 @@ -19428,6 +20103,8 @@ snapshots: fast-deep-equal@3.1.3: {} + fast-equals@5.2.2: {} + fast-glob@3.3.2: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -19472,6 +20149,10 @@ snapshots: dependencies: flat-cache: 4.0.0 + file-entry-cache@9.1.0: + dependencies: + flat-cache: 5.0.0 + file-type@19.0.0: dependencies: readable-web-to-node-stream: 3.0.2 @@ -19504,6 +20185,8 @@ snapshots: transitivePeerDependencies: - supports-color + find-up-simple@1.0.0: {} + find-up@4.1.0: dependencies: locate-path: 5.0.0 @@ -19537,8 +20220,15 @@ snapshots: keyv: 4.5.4 rimraf: 5.0.5 + flat-cache@5.0.0: + dependencies: + flatted: 3.3.2 + keyv: 4.5.4 + flatted@3.2.9: {} + flatted@3.3.2: {} + follow-redirects@1.15.6: {} for-each@0.3.3: @@ -19603,6 +20293,8 @@ snapshots: functions-have-names@1.2.3: {} + gensequence@7.0.0: {} + gensync@1.0.0-beta.2: {} get-caller-file@2.0.5: {} @@ -19637,6 +20329,8 @@ snapshots: dunder-proto: 1.0.1 es-object-atoms: 1.0.0 + get-stdin@9.0.0: {} + get-stream@2.3.1: dependencies: object-assign: 4.1.1 @@ -19698,6 +20392,10 @@ snapshots: once: 1.4.0 path-is-absolute: 1.0.1 + global-directory@4.0.1: + dependencies: + ini: 4.1.1 + global-modules@1.0.0: dependencies: global-prefix: 1.0.2 @@ -19773,6 +20471,8 @@ snapshots: has-flag@4.0.0: {} + has-own-prop@2.0.0: {} + has-property-descriptors@1.0.2: dependencies: es-define-property: 1.0.0 @@ -20039,6 +20739,8 @@ snapshots: pkg-dir: 4.2.0 resolve-cwd: 3.0.0 + import-meta-resolve@4.1.0: {} + imurmurhash@0.1.4: {} indent-string@4.0.0: {} @@ -20052,6 +20754,8 @@ snapshots: ini@1.3.8: {} + ini@4.1.1: {} + inline-style-parser@0.1.1: {} inline-style-parser@0.2.3: {} @@ -21894,6 +22598,10 @@ snapshots: dependencies: callsites: 3.1.0 + parent-module@2.0.0: + dependencies: + callsites: 3.1.0 + parse-entities@4.0.1: dependencies: '@types/unist': 2.0.8 @@ -22426,6 +23134,8 @@ snapshots: mdast-util-to-markdown: 2.1.0 unified: 11.0.5 + repeat-string@1.6.1: {} + require-directory@2.1.1: {} require-from-string@2.0.2: {} @@ -23317,6 +24027,11 @@ snapshots: tinyexec@0.3.1: {} + tinyglobby@0.2.10: + dependencies: + fdir: 6.4.2(picomatch@4.0.2) + picomatch: 4.0.2 + tinyglobby@0.2.9: dependencies: fdir: 6.4.2(picomatch@4.0.2) @@ -23931,6 +24646,8 @@ snapshots: vscode-languageserver-textdocument@1.0.11: {} + vscode-languageserver-textdocument@1.0.12: {} + vscode-languageserver-types@3.16.0: {} vscode-languageserver@7.0.0: @@ -24178,6 +24895,8 @@ snapshots: ws@8.17.1: {} + xdg-basedir@5.1.0: {} + xml-name-validator@4.0.0: {} xml2js@0.6.2: diff --git a/seed/csharp-model/exhaustive/.mock/definition/endpoints/params.yml b/seed/csharp-model/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/csharp-model/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/csharp-model/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/csharp-model/file-upload/.mock/definition/service.yml b/seed/csharp-model/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/csharp-model/file-upload/.mock/definition/service.yml +++ b/seed/csharp-model/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/csharp-model/file-upload/.mock/ir.json b/seed/csharp-model/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/csharp-model/file-upload/.mock/ir.json +++ b/seed/csharp-model/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/csharp-model/multi-line-docs/.mock/definition/user.yml b/seed/csharp-model/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/csharp-model/multi-line-docs/.mock/definition/user.yml +++ b/seed/csharp-model/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/csharp-model/pagination/.mock/definition/users.yml b/seed/csharp-model/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/csharp-model/pagination/.mock/definition/users.yml +++ b/seed/csharp-model/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/csharp-model/trace/.mock/definition/submission.yml b/seed/csharp-model/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/csharp-model/trace/.mock/definition/submission.yml +++ b/seed/csharp-model/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPage.cs b/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPage.cs index 0a2b9ed3e7d..346c9abdbf0 100644 --- a/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPage.cs +++ b/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPage.cs @@ -8,7 +8,7 @@ namespace SeedTrace; public record TraceResponsesPage { ///

- /// If present, use this to load subseqent pages. + /// If present, use this to load subsequent pages. /// The offset is the id of the next trace response to load. /// [JsonPropertyName("offset")] diff --git a/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPageV2.cs b/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPageV2.cs index 0025eb76c47..09be90c5d0b 100644 --- a/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPageV2.cs +++ b/seed/csharp-model/trace/src/SeedTrace/Submission/TraceResponsesPageV2.cs @@ -8,7 +8,7 @@ namespace SeedTrace; public record TraceResponsesPageV2 { /// - /// If present, use this to load subseqent pages. + /// If present, use this to load subsequent pages. /// The offset is the id of the next trace response to load. /// [JsonPropertyName("offset")] diff --git a/seed/csharp-model/unions/.mock/definition/types.yml b/seed/csharp-model/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/csharp-model/unions/.mock/definition/types.yml +++ b/seed/csharp-model/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/csharp-sdk/alias-extends/README.md b/seed/csharp-sdk/alias-extends/README.md index 849cfbd264b..cffe4e5449f 100644 --- a/seed/csharp-sdk/alias-extends/README.md +++ b/seed/csharp-sdk/alias-extends/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/alias/README.md b/seed/csharp-sdk/alias/README.md index 644a4aa33e7..24803027fbc 100644 --- a/seed/csharp-sdk/alias/README.md +++ b/seed/csharp-sdk/alias/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/any-auth/README.md b/seed/csharp-sdk/any-auth/README.md index ee1d73a4bdc..3ee45affb40 100644 --- a/seed/csharp-sdk/any-auth/README.md +++ b/seed/csharp-sdk/any-auth/README.md @@ -52,10 +52,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/api-wide-base-path/README.md b/seed/csharp-sdk/api-wide-base-path/README.md index 31cc823fc3f..c5b0beb8cfc 100644 --- a/seed/csharp-sdk/api-wide-base-path/README.md +++ b/seed/csharp-sdk/api-wide-base-path/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/audiences/README.md b/seed/csharp-sdk/audiences/README.md index fb27aa0fb91..74de0c6a014 100644 --- a/seed/csharp-sdk/audiences/README.md +++ b/seed/csharp-sdk/audiences/README.md @@ -50,10 +50,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/auth-environment-variables/README.md b/seed/csharp-sdk/auth-environment-variables/README.md index c5313a7e051..2561705a0f7 100644 --- a/seed/csharp-sdk/auth-environment-variables/README.md +++ b/seed/csharp-sdk/auth-environment-variables/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/basic-auth-environment-variables/README.md b/seed/csharp-sdk/basic-auth-environment-variables/README.md index 4de2eab3903..44a5bcb1656 100644 --- a/seed/csharp-sdk/basic-auth-environment-variables/README.md +++ b/seed/csharp-sdk/basic-auth-environment-variables/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/basic-auth/README.md b/seed/csharp-sdk/basic-auth/README.md index 01b46179d10..b3c6e7a965f 100644 --- a/seed/csharp-sdk/basic-auth/README.md +++ b/seed/csharp-sdk/basic-auth/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/bearer-token-environment-variable/README.md b/seed/csharp-sdk/bearer-token-environment-variable/README.md index 6a2d0e2e774..ef5eae8b06f 100644 --- a/seed/csharp-sdk/bearer-token-environment-variable/README.md +++ b/seed/csharp-sdk/bearer-token-environment-variable/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/cross-package-type-names/README.md b/seed/csharp-sdk/cross-package-type-names/README.md index a8786920c27..e218c57d218 100644 --- a/seed/csharp-sdk/cross-package-type-names/README.md +++ b/seed/csharp-sdk/cross-package-type-names/README.md @@ -50,10 +50,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/csharp-grpc-proto-exhaustive/README.md b/seed/csharp-sdk/csharp-grpc-proto-exhaustive/README.md index 16b6b2aa0f3..2642f0fa1b8 100644 --- a/seed/csharp-sdk/csharp-grpc-proto-exhaustive/README.md +++ b/seed/csharp-sdk/csharp-grpc-proto-exhaustive/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/csharp-grpc-proto/README.md b/seed/csharp-sdk/csharp-grpc-proto/README.md index fd73574bd96..1513839f768 100644 --- a/seed/csharp-sdk/csharp-grpc-proto/README.md +++ b/seed/csharp-sdk/csharp-grpc-proto/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/csharp-namespace-conflict/README.md b/seed/csharp-sdk/csharp-namespace-conflict/README.md index 50aea83a538..51ff8ce9ffe 100644 --- a/seed/csharp-sdk/csharp-namespace-conflict/README.md +++ b/seed/csharp-sdk/csharp-namespace-conflict/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/custom-auth/README.md b/seed/csharp-sdk/custom-auth/README.md index ec25c8e548d..d3aba4fc4bc 100644 --- a/seed/csharp-sdk/custom-auth/README.md +++ b/seed/csharp-sdk/custom-auth/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/enum/forward-compatible-enums/README.md b/seed/csharp-sdk/enum/forward-compatible-enums/README.md index f8ef4a6b64b..bd9c797f253 100644 --- a/seed/csharp-sdk/enum/forward-compatible-enums/README.md +++ b/seed/csharp-sdk/enum/forward-compatible-enums/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/enum/plain-enums/README.md b/seed/csharp-sdk/enum/plain-enums/README.md index f8ef4a6b64b..bd9c797f253 100644 --- a/seed/csharp-sdk/enum/plain-enums/README.md +++ b/seed/csharp-sdk/enum/plain-enums/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/error-property/README.md b/seed/csharp-sdk/error-property/README.md index ca67bede54c..f53f89a8221 100644 --- a/seed/csharp-sdk/error-property/README.md +++ b/seed/csharp-sdk/error-property/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/examples/no-custom-config/README.md b/seed/csharp-sdk/examples/no-custom-config/README.md index eee4fb08a28..c3d37439458 100644 --- a/seed/csharp-sdk/examples/no-custom-config/README.md +++ b/seed/csharp-sdk/examples/no-custom-config/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/examples/readme-config/README.md b/seed/csharp-sdk/examples/readme-config/README.md index 21b80e650f2..99541a9ca43 100644 --- a/seed/csharp-sdk/examples/readme-config/README.md +++ b/seed/csharp-sdk/examples/readme-config/README.md @@ -73,10 +73,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/.mock/definition/endpoints/params.yml b/seed/csharp-sdk/exhaustive/explicit-namespaces/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/.mock/definition/endpoints/params.yml +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/README.md b/seed/csharp-sdk/exhaustive/explicit-namespaces/README.md index be941bd6933..39fddaaee0a 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/README.md +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/reference.md b/seed/csharp-sdk/exhaustive/explicit-namespaces/reference.md index 981a7c8ea90..c1865f9db73 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/reference.md +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/reference.md @@ -1263,7 +1263,7 @@ GET with multiple of same query param ```csharp await client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - new GetWithMultipleQuery { Query = ["query"], Numer = [1] } + new GetWithMultipleQuery { Query = ["query"], Number = [1] } ); ``` diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/snippet.json b/seed/csharp-sdk/exhaustive/explicit-namespaces/snippet.json index 4475e871aad..afa6710da51 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/snippet.json +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/snippet.json @@ -298,7 +298,7 @@ }, "snippet": { "type": "typescript", - "client": "using SeedExhaustive.Endpoints.Params;\nusing SeedExhaustive;\n\nvar client = new SeedExhaustiveClient(\"TOKEN\");\nawait client.Endpoints.Params.GetWithAllowMultipleQueryAsync(\n new GetWithMultipleQuery { Query = [\"query\"], Numer = [1] }\n);\n" + "client": "using SeedExhaustive.Endpoints.Params;\nusing SeedExhaustive;\n\nvar client = new SeedExhaustiveClient(\"TOKEN\");\nawait client.Endpoints.Params.GetWithAllowMultipleQueryAsync(\n new GetWithMultipleQuery { Query = [\"query\"], Number = [1] }\n);\n" } }, { diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs b/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs index aa87d981751..249a548bfbd 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs @@ -17,7 +17,7 @@ public void MockServerTest() .RequestBuilders.Request.Create() .WithPath("/params") .WithParam("query", "query") - .WithParam("numer", "1") + .WithParam("number", "1") .UsingGet() ) .RespondWith(WireMock.ResponseBuilders.Response.Create().WithStatusCode(200)); @@ -25,7 +25,7 @@ public void MockServerTest() Assert.DoesNotThrowAsync( async () => await Client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - new GetWithMultipleQuery { Query = ["query"], Numer = [1] }, + new GetWithMultipleQuery { Query = ["query"], Number = [1] }, RequestOptions ) ); diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs b/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs index d20122cb84c..a83b6e21741 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs @@ -153,7 +153,7 @@ public async Task GetWithQueryAsync( /// /// /// await client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - /// new GetWithMultipleQuery { Query = ["query"], Numer = [1] } + /// new GetWithMultipleQuery { Query = ["query"], Number = [1] } /// ); /// /// @@ -165,7 +165,7 @@ public async Task GetWithAllowMultipleQueryAsync( { var _query = new Dictionary(); _query["query"] = request.Query; - _query["numer"] = request.Numer.Select(_value => _value.ToString()).ToList(); + _query["number"] = request.Number.Select(_value => _value.ToString()).ToList(); var response = await _client.MakeRequestAsync( new RawClient.JsonApiRequest { diff --git a/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs b/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs index 51ee40bc966..342e366dcf8 100644 --- a/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs +++ b/seed/csharp-sdk/exhaustive/explicit-namespaces/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs @@ -8,7 +8,7 @@ public record GetWithMultipleQuery { public IEnumerable Query { get; set; } = new List(); - public IEnumerable Numer { get; set; } = new List(); + public IEnumerable Number { get; set; } = new List(); public override string ToString() { diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/.mock/definition/endpoints/params.yml b/seed/csharp-sdk/exhaustive/no-generate-error-types/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/.mock/definition/endpoints/params.yml +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/README.md b/seed/csharp-sdk/exhaustive/no-generate-error-types/README.md index be941bd6933..39fddaaee0a 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/README.md +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/reference.md b/seed/csharp-sdk/exhaustive/no-generate-error-types/reference.md index 5d7130298fc..01954eb87d6 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/reference.md +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/reference.md @@ -1263,7 +1263,7 @@ GET with multiple of same query param ```csharp await client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - new GetWithMultipleQuery { Query = ["query"], Numer = [1] } + new GetWithMultipleQuery { Query = ["query"], Number = [1] } ); ``` diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/snippet.json b/seed/csharp-sdk/exhaustive/no-generate-error-types/snippet.json index 1442e88c06a..7d4e5d85626 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/snippet.json +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/snippet.json @@ -298,7 +298,7 @@ }, "snippet": { "type": "typescript", - "client": "using SeedExhaustive.Endpoints;\nusing SeedExhaustive;\n\nvar client = new SeedExhaustiveClient(\"TOKEN\");\nawait client.Endpoints.Params.GetWithAllowMultipleQueryAsync(\n new GetWithMultipleQuery { Query = [\"query\"], Numer = [1] }\n);\n" + "client": "using SeedExhaustive.Endpoints;\nusing SeedExhaustive;\n\nvar client = new SeedExhaustiveClient(\"TOKEN\");\nawait client.Endpoints.Params.GetWithAllowMultipleQueryAsync(\n new GetWithMultipleQuery { Query = [\"query\"], Number = [1] }\n);\n" } }, { diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs b/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs index 620f9a06f9c..929721dab48 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs @@ -17,7 +17,7 @@ public void MockServerTest() .RequestBuilders.Request.Create() .WithPath("/params") .WithParam("query", "query") - .WithParam("numer", "1") + .WithParam("number", "1") .UsingGet() ) .RespondWith(WireMock.ResponseBuilders.Response.Create().WithStatusCode(200)); @@ -25,7 +25,7 @@ public void MockServerTest() Assert.DoesNotThrowAsync( async () => await Client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - new GetWithMultipleQuery { Query = ["query"], Numer = [1] }, + new GetWithMultipleQuery { Query = ["query"], Number = [1] }, RequestOptions ) ); diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs b/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs index 5e9e947d8aa..26795596e9c 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs @@ -153,7 +153,7 @@ public async Task GetWithQueryAsync( /// /// /// await client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - /// new GetWithMultipleQuery { Query = ["query"], Numer = [1] } + /// new GetWithMultipleQuery { Query = ["query"], Number = [1] } /// ); /// /// @@ -165,7 +165,7 @@ public async Task GetWithAllowMultipleQueryAsync( { var _query = new Dictionary(); _query["query"] = request.Query; - _query["numer"] = request.Numer.Select(_value => _value.ToString()).ToList(); + _query["number"] = request.Number.Select(_value => _value.ToString()).ToList(); var response = await _client.MakeRequestAsync( new RawClient.JsonApiRequest { diff --git a/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs b/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs index a6a2371f09a..cea3a85a4bb 100644 --- a/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs +++ b/seed/csharp-sdk/exhaustive/no-generate-error-types/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs @@ -8,7 +8,7 @@ public record GetWithMultipleQuery { public IEnumerable Query { get; set; } = new List(); - public IEnumerable Numer { get; set; } = new List(); + public IEnumerable Number { get; set; } = new List(); public override string ToString() { diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/.mock/definition/endpoints/params.yml b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/.mock/definition/endpoints/params.yml +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/README.md b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/README.md index be941bd6933..39fddaaee0a 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/README.md +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/reference.md b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/reference.md index 5d7130298fc..01954eb87d6 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/reference.md +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/reference.md @@ -1263,7 +1263,7 @@ GET with multiple of same query param ```csharp await client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - new GetWithMultipleQuery { Query = ["query"], Numer = [1] } + new GetWithMultipleQuery { Query = ["query"], Number = [1] } ); ``` diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/snippet.json b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/snippet.json index 1442e88c06a..7d4e5d85626 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/snippet.json +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/snippet.json @@ -298,7 +298,7 @@ }, "snippet": { "type": "typescript", - "client": "using SeedExhaustive.Endpoints;\nusing SeedExhaustive;\n\nvar client = new SeedExhaustiveClient(\"TOKEN\");\nawait client.Endpoints.Params.GetWithAllowMultipleQueryAsync(\n new GetWithMultipleQuery { Query = [\"query\"], Numer = [1] }\n);\n" + "client": "using SeedExhaustive.Endpoints;\nusing SeedExhaustive;\n\nvar client = new SeedExhaustiveClient(\"TOKEN\");\nawait client.Endpoints.Params.GetWithAllowMultipleQueryAsync(\n new GetWithMultipleQuery { Query = [\"query\"], Number = [1] }\n);\n" } }, { diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs index 620f9a06f9c..929721dab48 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive.Test/Unit/MockServer/GetWithAllowMultipleQueryTest.cs @@ -17,7 +17,7 @@ public void MockServerTest() .RequestBuilders.Request.Create() .WithPath("/params") .WithParam("query", "query") - .WithParam("numer", "1") + .WithParam("number", "1") .UsingGet() ) .RespondWith(WireMock.ResponseBuilders.Response.Create().WithStatusCode(200)); @@ -25,7 +25,7 @@ public void MockServerTest() Assert.DoesNotThrowAsync( async () => await Client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - new GetWithMultipleQuery { Query = ["query"], Numer = [1] }, + new GetWithMultipleQuery { Query = ["query"], Number = [1] }, RequestOptions ) ); diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs index 3513e399404..5ea38ca8f3a 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/ParamsClient.cs @@ -152,7 +152,7 @@ public async Task GetWithQueryAsync( /// /// /// await client.Endpoints.Params.GetWithAllowMultipleQueryAsync( - /// new GetWithMultipleQuery { Query = ["query"], Numer = [1] } + /// new GetWithMultipleQuery { Query = ["query"], Number = [1] } /// ); /// /// @@ -164,7 +164,7 @@ public async Task GetWithAllowMultipleQueryAsync( { var _query = new Dictionary(); _query["query"] = request.Query; - _query["numer"] = request.Numer.Select(_value => _value.ToString()).ToList(); + _query["number"] = request.Number.Select(_value => _value.ToString()).ToList(); var response = await _client.MakeRequestAsync( new RawClient.JsonApiRequest { diff --git a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs index a6a2371f09a..cea3a85a4bb 100644 --- a/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs +++ b/seed/csharp-sdk/exhaustive/no-root-namespace-for-core-classes/src/SeedExhaustive/Endpoints/Params/Requests/GetWithMultipleQuery.cs @@ -8,7 +8,7 @@ public record GetWithMultipleQuery { public IEnumerable Query { get; set; } = new List(); - public IEnumerable Numer { get; set; } = new List(); + public IEnumerable Number { get; set; } = new List(); public override string ToString() { diff --git a/seed/csharp-sdk/extends/README.md b/seed/csharp-sdk/extends/README.md index 03094f1bd89..e163c908384 100644 --- a/seed/csharp-sdk/extends/README.md +++ b/seed/csharp-sdk/extends/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/extra-properties/README.md b/seed/csharp-sdk/extra-properties/README.md index cd5a032f24e..0309bc35279 100644 --- a/seed/csharp-sdk/extra-properties/README.md +++ b/seed/csharp-sdk/extra-properties/README.md @@ -50,10 +50,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/file-upload/.mock/definition/service.yml b/seed/csharp-sdk/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/csharp-sdk/file-upload/.mock/definition/service.yml +++ b/seed/csharp-sdk/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/csharp-sdk/file-upload/.mock/ir.json b/seed/csharp-sdk/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/csharp-sdk/file-upload/.mock/ir.json +++ b/seed/csharp-sdk/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileRequet.cs b/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileRequest.cs similarity index 84% rename from seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileRequet.cs rename to seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileRequest.cs index 71a0629940f..e3649fcf983 100644 --- a/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileRequet.cs +++ b/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileRequest.cs @@ -4,7 +4,7 @@ namespace SeedFileUpload; -public record JustFileRequet +public record JustFileRequest { public override string ToString() { diff --git a/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileWithQueryParamsRequet.cs b/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileWithQueryParamsRequest.cs similarity index 91% rename from seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileWithQueryParamsRequet.cs rename to seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileWithQueryParamsRequest.cs index bfed75ebd0a..33ba98cd4a4 100644 --- a/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileWithQueryParamsRequet.cs +++ b/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/Requests/JustFileWithQueryParamsRequest.cs @@ -4,7 +4,7 @@ namespace SeedFileUpload; -public record JustFileWithQueryParamsRequet +public record JustFileWithQueryParamsRequest { public string? MaybeString { get; set; } diff --git a/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/ServiceClient.cs b/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/ServiceClient.cs index 68cba03d408..6fd10dce8df 100644 --- a/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/ServiceClient.cs +++ b/seed/csharp-sdk/file-upload/src/SeedFileUpload/Service/ServiceClient.cs @@ -45,7 +45,7 @@ public async Task PostAsync( } public async Task JustFileAsync( - JustFileRequet request, + JustFileRequest request, RequestOptions? options = null, CancellationToken cancellationToken = default ) @@ -73,7 +73,7 @@ public async Task JustFileAsync( } public async Task JustFileWithQueryParamsAsync( - JustFileWithQueryParamsRequet request, + JustFileWithQueryParamsRequest request, RequestOptions? options = null, CancellationToken cancellationToken = default ) diff --git a/seed/csharp-sdk/folders/README.md b/seed/csharp-sdk/folders/README.md index 0717598de6b..2ede308e10a 100644 --- a/seed/csharp-sdk/folders/README.md +++ b/seed/csharp-sdk/folders/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/idempotency-headers/README.md b/seed/csharp-sdk/idempotency-headers/README.md index f6d810f45d7..575de44fd25 100644 --- a/seed/csharp-sdk/idempotency-headers/README.md +++ b/seed/csharp-sdk/idempotency-headers/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/imdb/exception-class-names/README.md b/seed/csharp-sdk/imdb/exception-class-names/README.md index c11420d83db..dd87271a516 100644 --- a/seed/csharp-sdk/imdb/exception-class-names/README.md +++ b/seed/csharp-sdk/imdb/exception-class-names/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/imdb/extra-dependencies/README.md b/seed/csharp-sdk/imdb/extra-dependencies/README.md index d11a20c58e0..9a7d5463875 100644 --- a/seed/csharp-sdk/imdb/extra-dependencies/README.md +++ b/seed/csharp-sdk/imdb/extra-dependencies/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/imdb/no-custom-config/README.md b/seed/csharp-sdk/imdb/no-custom-config/README.md index d11a20c58e0..9a7d5463875 100644 --- a/seed/csharp-sdk/imdb/no-custom-config/README.md +++ b/seed/csharp-sdk/imdb/no-custom-config/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/inline-types/README.md b/seed/csharp-sdk/inline-types/README.md index 81ab2dade02..715738e8a1e 100644 --- a/seed/csharp-sdk/inline-types/README.md +++ b/seed/csharp-sdk/inline-types/README.md @@ -49,10 +49,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/license/custom-license/README.md b/seed/csharp-sdk/license/custom-license/README.md index 8364fe1c5da..9b47aaad4e5 100644 --- a/seed/csharp-sdk/license/custom-license/README.md +++ b/seed/csharp-sdk/license/custom-license/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/license/mit-license/README.md b/seed/csharp-sdk/license/mit-license/README.md index 8364fe1c5da..9b47aaad4e5 100644 --- a/seed/csharp-sdk/license/mit-license/README.md +++ b/seed/csharp-sdk/license/mit-license/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/literal/README.md b/seed/csharp-sdk/literal/README.md index 9c7c8c9539b..7d357697030 100644 --- a/seed/csharp-sdk/literal/README.md +++ b/seed/csharp-sdk/literal/README.md @@ -50,10 +50,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/mixed-case/README.md b/seed/csharp-sdk/mixed-case/README.md index b3638614271..7677ce7cd8f 100644 --- a/seed/csharp-sdk/mixed-case/README.md +++ b/seed/csharp-sdk/mixed-case/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/mixed-file-directory/README.md b/seed/csharp-sdk/mixed-file-directory/README.md index cd20f8c4f4b..8da6c1d8fdf 100644 --- a/seed/csharp-sdk/mixed-file-directory/README.md +++ b/seed/csharp-sdk/mixed-file-directory/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/multi-line-docs/.mock/definition/user.yml b/seed/csharp-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/csharp-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/csharp-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/csharp-sdk/multi-line-docs/README.md b/seed/csharp-sdk/multi-line-docs/README.md index 3ab40813aea..18d156dabdd 100644 --- a/seed/csharp-sdk/multi-line-docs/README.md +++ b/seed/csharp-sdk/multi-line-docs/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/multi-line-docs/src/SeedMultiLineDocs/User/Requests/CreateUserRequest.cs b/seed/csharp-sdk/multi-line-docs/src/SeedMultiLineDocs/User/Requests/CreateUserRequest.cs index 851a531d95e..113d849097f 100644 --- a/seed/csharp-sdk/multi-line-docs/src/SeedMultiLineDocs/User/Requests/CreateUserRequest.cs +++ b/seed/csharp-sdk/multi-line-docs/src/SeedMultiLineDocs/User/Requests/CreateUserRequest.cs @@ -16,7 +16,7 @@ public record CreateUserRequest /// /// The age of the user. - /// This propery is not required. + /// This property is not required. /// [JsonPropertyName("age")] public int? Age { get; set; } diff --git a/seed/csharp-sdk/multi-url-environment-no-default/README.md b/seed/csharp-sdk/multi-url-environment-no-default/README.md index 0295983bef1..4847710b6e5 100644 --- a/seed/csharp-sdk/multi-url-environment-no-default/README.md +++ b/seed/csharp-sdk/multi-url-environment-no-default/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/multi-url-environment/no-pascal-case-environments/README.md b/seed/csharp-sdk/multi-url-environment/no-pascal-case-environments/README.md index 6fe50bdcaca..ed13c5523d0 100644 --- a/seed/csharp-sdk/multi-url-environment/no-pascal-case-environments/README.md +++ b/seed/csharp-sdk/multi-url-environment/no-pascal-case-environments/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/no-environment/README.md b/seed/csharp-sdk/no-environment/README.md index 65f75ea6de7..6c978176534 100644 --- a/seed/csharp-sdk/no-environment/README.md +++ b/seed/csharp-sdk/no-environment/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/nullable/README.md b/seed/csharp-sdk/nullable/README.md index 382cbc6a8b6..7ac00172ed8 100644 --- a/seed/csharp-sdk/nullable/README.md +++ b/seed/csharp-sdk/nullable/README.md @@ -57,10 +57,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/oauth-client-credentials-custom/README.md b/seed/csharp-sdk/oauth-client-credentials-custom/README.md index 98adeda9904..50f3a6b4ac9 100644 --- a/seed/csharp-sdk/oauth-client-credentials-custom/README.md +++ b/seed/csharp-sdk/oauth-client-credentials-custom/README.md @@ -54,10 +54,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/oauth-client-credentials-default/README.md b/seed/csharp-sdk/oauth-client-credentials-default/README.md index 4a5860d2b18..14ff3e83f2d 100644 --- a/seed/csharp-sdk/oauth-client-credentials-default/README.md +++ b/seed/csharp-sdk/oauth-client-credentials-default/README.md @@ -50,10 +50,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/oauth-client-credentials-environment-variables/README.md b/seed/csharp-sdk/oauth-client-credentials-environment-variables/README.md index cdc7ffb76af..a40e92e21d6 100644 --- a/seed/csharp-sdk/oauth-client-credentials-environment-variables/README.md +++ b/seed/csharp-sdk/oauth-client-credentials-environment-variables/README.md @@ -52,10 +52,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/oauth-client-credentials-nested-root/README.md b/seed/csharp-sdk/oauth-client-credentials-nested-root/README.md index fa1033470cf..b7bc00333cf 100644 --- a/seed/csharp-sdk/oauth-client-credentials-nested-root/README.md +++ b/seed/csharp-sdk/oauth-client-credentials-nested-root/README.md @@ -53,10 +53,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/oauth-client-credentials/README.md b/seed/csharp-sdk/oauth-client-credentials/README.md index 33128686ea2..4e64b45202f 100644 --- a/seed/csharp-sdk/oauth-client-credentials/README.md +++ b/seed/csharp-sdk/oauth-client-credentials/README.md @@ -52,10 +52,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/optional/no-simplify-object-dictionaries/README.md b/seed/csharp-sdk/optional/no-simplify-object-dictionaries/README.md index 42082bb87f7..8ab79603df3 100644 --- a/seed/csharp-sdk/optional/no-simplify-object-dictionaries/README.md +++ b/seed/csharp-sdk/optional/no-simplify-object-dictionaries/README.md @@ -51,10 +51,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/package-yml/README.md b/seed/csharp-sdk/package-yml/README.md index ce662860ada..c82c0c3a7ed 100644 --- a/seed/csharp-sdk/package-yml/README.md +++ b/seed/csharp-sdk/package-yml/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/pagination/.mock/definition/users.yml b/seed/csharp-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/csharp-sdk/pagination/.mock/definition/users.yml +++ b/seed/csharp-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/csharp-sdk/pagination/README.md b/seed/csharp-sdk/pagination/README.md index a13ff55b1b6..28b0c9d9b9b 100644 --- a/seed/csharp-sdk/pagination/README.md +++ b/seed/csharp-sdk/pagination/README.md @@ -45,10 +45,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListUsersOffsetStepPaginationRequest.cs b/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListUsersOffsetStepPaginationRequest.cs index 10633d8ef4b..25fb6dcc57f 100644 --- a/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListUsersOffsetStepPaginationRequest.cs +++ b/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListUsersOffsetStepPaginationRequest.cs @@ -12,7 +12,7 @@ public record ListUsersOffsetStepPaginationRequest public int? Page { get; set; } /// - /// The maxiumum number of elements to return. + /// The maximum number of elements to return. /// This is also used as the step size in this /// paginated endpoint. /// diff --git a/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.cs b/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.cs index 5e122bd51df..fcc1df7b9ec 100644 --- a/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.cs +++ b/seed/csharp-sdk/pagination/src/SeedPagination/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.cs @@ -12,7 +12,7 @@ public record ListWithOffsetPaginationHasNextPageRequest public int? Page { get; set; } /// - /// The maxiumum number of elements to return. + /// The maximum number of elements to return. /// This is also used as the step size in this /// paginated endpoint. /// diff --git a/seed/csharp-sdk/path-parameters/README.md b/seed/csharp-sdk/path-parameters/README.md index 52a4bc54984..70f2e9050c3 100644 --- a/seed/csharp-sdk/path-parameters/README.md +++ b/seed/csharp-sdk/path-parameters/README.md @@ -50,10 +50,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/plain-text/README.md b/seed/csharp-sdk/plain-text/README.md index ebcdca38e53..0afb7fb081e 100644 --- a/seed/csharp-sdk/plain-text/README.md +++ b/seed/csharp-sdk/plain-text/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/reserved-keywords/README.md b/seed/csharp-sdk/reserved-keywords/README.md index d2d56b45069..83806b6ccbf 100644 --- a/seed/csharp-sdk/reserved-keywords/README.md +++ b/seed/csharp-sdk/reserved-keywords/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/response-property/README.md b/seed/csharp-sdk/response-property/README.md index 4b450799c07..10284b58473 100644 --- a/seed/csharp-sdk/response-property/README.md +++ b/seed/csharp-sdk/response-property/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/seed.yml b/seed/csharp-sdk/seed.yml index 882a8233c88..3a49ac5bab7 100644 --- a/seed/csharp-sdk/seed.yml +++ b/seed/csharp-sdk/seed.yml @@ -133,7 +133,7 @@ allowedFailures: - unknown # issue with example object # - package-yml # user-provided example path not coming in properly # - simple-fhir # nested generated examples are wonky - # - enum # failing because of oneofs as header values + # - enum # failing because of oneof's as header values # - trace # failing because we don't call stringify on enums path params # - undiscriminated-unions # failing because of union type as dictionary key # - exhaustive:explicit-namespaces # single test failing because we don't support discriminated unions properly diff --git a/seed/csharp-sdk/server-sent-event-examples/README.md b/seed/csharp-sdk/server-sent-event-examples/README.md index 64c4455d6f8..fa25706df6d 100644 --- a/seed/csharp-sdk/server-sent-event-examples/README.md +++ b/seed/csharp-sdk/server-sent-event-examples/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/server-sent-events/README.md b/seed/csharp-sdk/server-sent-events/README.md index da9cac96a85..e41b189b751 100644 --- a/seed/csharp-sdk/server-sent-events/README.md +++ b/seed/csharp-sdk/server-sent-events/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/simple-fhir/README.md b/seed/csharp-sdk/simple-fhir/README.md index 876d9892e5a..e096ebfbbf9 100644 --- a/seed/csharp-sdk/simple-fhir/README.md +++ b/seed/csharp-sdk/simple-fhir/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/single-url-environment-default/README.md b/seed/csharp-sdk/single-url-environment-default/README.md index 24667c76696..fb77489ffcd 100644 --- a/seed/csharp-sdk/single-url-environment-default/README.md +++ b/seed/csharp-sdk/single-url-environment-default/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/single-url-environment-no-default/README.md b/seed/csharp-sdk/single-url-environment-no-default/README.md index f285012d615..239a95e913a 100644 --- a/seed/csharp-sdk/single-url-environment-no-default/README.md +++ b/seed/csharp-sdk/single-url-environment-no-default/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/streaming-parameter/README.md b/seed/csharp-sdk/streaming-parameter/README.md index 22533fe2978..9a824eec5cc 100644 --- a/seed/csharp-sdk/streaming-parameter/README.md +++ b/seed/csharp-sdk/streaming-parameter/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/streaming/README.md b/seed/csharp-sdk/streaming/README.md index e157795f667..67095f61f9c 100644 --- a/seed/csharp-sdk/streaming/README.md +++ b/seed/csharp-sdk/streaming/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/trace/.mock/definition/submission.yml b/seed/csharp-sdk/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/csharp-sdk/trace/.mock/definition/submission.yml +++ b/seed/csharp-sdk/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/csharp-sdk/trace/README.md b/seed/csharp-sdk/trace/README.md index c3d19dd97a6..b61cbe8e990 100644 --- a/seed/csharp-sdk/trace/README.md +++ b/seed/csharp-sdk/trace/README.md @@ -46,10 +46,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPage.cs b/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPage.cs index 0a2b9ed3e7d..346c9abdbf0 100644 --- a/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPage.cs +++ b/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPage.cs @@ -8,7 +8,7 @@ namespace SeedTrace; public record TraceResponsesPage { /// - /// If present, use this to load subseqent pages. + /// If present, use this to load subsequent pages. /// The offset is the id of the next trace response to load. /// [JsonPropertyName("offset")] diff --git a/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPageV2.cs b/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPageV2.cs index 0025eb76c47..09be90c5d0b 100644 --- a/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPageV2.cs +++ b/seed/csharp-sdk/trace/src/SeedTrace/Submission/Types/TraceResponsesPageV2.cs @@ -8,7 +8,7 @@ namespace SeedTrace; public record TraceResponsesPageV2 { /// - /// If present, use this to load subseqent pages. + /// If present, use this to load subsequent pages. /// The offset is the id of the next trace response to load. /// [JsonPropertyName("offset")] diff --git a/seed/csharp-sdk/undiscriminated-unions/README.md b/seed/csharp-sdk/undiscriminated-unions/README.md index 14b57f088d0..903996fd663 100644 --- a/seed/csharp-sdk/undiscriminated-unions/README.md +++ b/seed/csharp-sdk/undiscriminated-unions/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/unions/.mock/definition/types.yml b/seed/csharp-sdk/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/csharp-sdk/unions/.mock/definition/types.yml +++ b/seed/csharp-sdk/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/csharp-sdk/unions/README.md b/seed/csharp-sdk/unions/README.md index 6b761463028..f740ae946ca 100644 --- a/seed/csharp-sdk/unions/README.md +++ b/seed/csharp-sdk/unions/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/unknown/README.md b/seed/csharp-sdk/unknown/README.md index 1993b00493d..d58949f228f 100644 --- a/seed/csharp-sdk/unknown/README.md +++ b/seed/csharp-sdk/unknown/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/validation/README.md b/seed/csharp-sdk/validation/README.md index 04dc7e6b0db..c91605718af 100644 --- a/seed/csharp-sdk/validation/README.md +++ b/seed/csharp-sdk/validation/README.md @@ -51,10 +51,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/variables/README.md b/seed/csharp-sdk/variables/README.md index 8f93d6e8477..f85509dbfed 100644 --- a/seed/csharp-sdk/variables/README.md +++ b/seed/csharp-sdk/variables/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/version-no-default/README.md b/seed/csharp-sdk/version-no-default/README.md index 9e74360cbc5..95f24a8271a 100644 --- a/seed/csharp-sdk/version-no-default/README.md +++ b/seed/csharp-sdk/version-no-default/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/csharp-sdk/version/README.md b/seed/csharp-sdk/version/README.md index 9e74360cbc5..95f24a8271a 100644 --- a/seed/csharp-sdk/version/README.md +++ b/seed/csharp-sdk/version/README.md @@ -43,10 +43,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/fastapi/alias-extends/core/pydantic_utilities.py b/seed/fastapi/alias-extends/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/alias-extends/core/pydantic_utilities.py +++ b/seed/fastapi/alias-extends/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/alias/core/pydantic_utilities.py b/seed/fastapi/alias/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/alias/core/pydantic_utilities.py +++ b/seed/fastapi/alias/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py b/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py +++ b/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/audiences/core/pydantic_utilities.py b/seed/fastapi/audiences/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/audiences/core/pydantic_utilities.py +++ b/seed/fastapi/audiences/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py b/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py index ac22d16a187..f3b5719411c 100644 --- a/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py +++ b/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py @@ -106,7 +106,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py b/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py +++ b/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/basic-auth/core/pydantic_utilities.py b/seed/fastapi/basic-auth/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/basic-auth/core/pydantic_utilities.py +++ b/seed/fastapi/basic-auth/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py b/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py +++ b/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py b/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py +++ b/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/circular-references/core/pydantic_utilities.py b/seed/fastapi/circular-references/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/circular-references/core/pydantic_utilities.py +++ b/seed/fastapi/circular-references/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/code-samples/core/pydantic_utilities.py b/seed/fastapi/code-samples/core/pydantic_utilities.py index e498bc763ab..5e66461676e 100644 --- a/seed/fastapi/code-samples/core/pydantic_utilities.py +++ b/seed/fastapi/code-samples/core/pydantic_utilities.py @@ -81,7 +81,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -143,7 +143,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/cross-package-type-names/core/pydantic_utilities.py b/seed/fastapi/cross-package-type-names/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/cross-package-type-names/core/pydantic_utilities.py +++ b/seed/fastapi/cross-package-type-names/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/custom-auth/core/pydantic_utilities.py b/seed/fastapi/custom-auth/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/custom-auth/core/pydantic_utilities.py +++ b/seed/fastapi/custom-auth/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/error-property/core/pydantic_utilities.py b/seed/fastapi/error-property/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/error-property/core/pydantic_utilities.py +++ b/seed/fastapi/error-property/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/examples/core/pydantic_utilities.py b/seed/fastapi/examples/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/examples/core/pydantic_utilities.py +++ b/seed/fastapi/examples/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/frozen_utils/.mock/definition/endpoints/params.yml b/seed/fastapi/exhaustive/frozen_utils/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/fastapi/exhaustive/frozen_utils/.mock/definition/endpoints/params.yml +++ b/seed/fastapi/exhaustive/frozen_utils/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/fastapi/exhaustive/frozen_utils/core/pydantic_utilities.py b/seed/fastapi/exhaustive/frozen_utils/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/exhaustive/frozen_utils/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/frozen_utils/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/frozen_utils/resources/endpoints/resources/params/service/service.py b/seed/fastapi/exhaustive/frozen_utils/resources/endpoints/resources/params/service/service.py index ad16adbdc79..fbd93ae5be9 100644 --- a/seed/fastapi/exhaustive/frozen_utils/resources/endpoints/resources/params/service/service.py +++ b/seed/fastapi/exhaustive/frozen_utils/resources/endpoints/resources/params/service/service.py @@ -46,7 +46,7 @@ def get_with_query(self, *, query: str, number: int, auth: ApiAuth) -> None: @abc.abstractmethod def get_with_allow_multiple_query( - self, *, query: typing.List[str], numer: typing.List[int], auth: ApiAuth + self, *, query: typing.List[str], number: typing.List[int], auth: ApiAuth ) -> None: """ GET with multiple of same query param @@ -257,7 +257,7 @@ def __init_get_with_allow_multiple_query(cls, router: fastapi.APIRouter) -> None new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) - elif parameter_name == "numer": + elif parameter_name == "number": new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) diff --git a/seed/fastapi/exhaustive/include-validators/.mock/definition/endpoints/params.yml b/seed/fastapi/exhaustive/include-validators/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/fastapi/exhaustive/include-validators/.mock/definition/endpoints/params.yml +++ b/seed/fastapi/exhaustive/include-validators/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/fastapi/exhaustive/include-validators/core/pydantic_utilities.py b/seed/fastapi/exhaustive/include-validators/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/exhaustive/include-validators/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/include-validators/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/include-validators/resources/endpoints/resources/params/service/service.py b/seed/fastapi/exhaustive/include-validators/resources/endpoints/resources/params/service/service.py index ad16adbdc79..fbd93ae5be9 100644 --- a/seed/fastapi/exhaustive/include-validators/resources/endpoints/resources/params/service/service.py +++ b/seed/fastapi/exhaustive/include-validators/resources/endpoints/resources/params/service/service.py @@ -46,7 +46,7 @@ def get_with_query(self, *, query: str, number: int, auth: ApiAuth) -> None: @abc.abstractmethod def get_with_allow_multiple_query( - self, *, query: typing.List[str], numer: typing.List[int], auth: ApiAuth + self, *, query: typing.List[str], number: typing.List[int], auth: ApiAuth ) -> None: """ GET with multiple of same query param @@ -257,7 +257,7 @@ def __init_get_with_allow_multiple_query(cls, router: fastapi.APIRouter) -> None new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) - elif parameter_name == "numer": + elif parameter_name == "number": new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) diff --git a/seed/fastapi/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml b/seed/fastapi/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/fastapi/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml +++ b/seed/fastapi/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py b/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/no-custom-config/resources/endpoints/resources/params/service/service.py b/seed/fastapi/exhaustive/no-custom-config/resources/endpoints/resources/params/service/service.py index ad16adbdc79..fbd93ae5be9 100644 --- a/seed/fastapi/exhaustive/no-custom-config/resources/endpoints/resources/params/service/service.py +++ b/seed/fastapi/exhaustive/no-custom-config/resources/endpoints/resources/params/service/service.py @@ -46,7 +46,7 @@ def get_with_query(self, *, query: str, number: int, auth: ApiAuth) -> None: @abc.abstractmethod def get_with_allow_multiple_query( - self, *, query: typing.List[str], numer: typing.List[int], auth: ApiAuth + self, *, query: typing.List[str], number: typing.List[int], auth: ApiAuth ) -> None: """ GET with multiple of same query param @@ -257,7 +257,7 @@ def __init_get_with_allow_multiple_query(cls, router: fastapi.APIRouter) -> None new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) - elif parameter_name == "numer": + elif parameter_name == "number": new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) diff --git a/seed/fastapi/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml b/seed/fastapi/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/fastapi/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml +++ b/seed/fastapi/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py b/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/pydantic-v1/resources/endpoints/resources/params/service/service.py b/seed/fastapi/exhaustive/pydantic-v1/resources/endpoints/resources/params/service/service.py index ad16adbdc79..fbd93ae5be9 100644 --- a/seed/fastapi/exhaustive/pydantic-v1/resources/endpoints/resources/params/service/service.py +++ b/seed/fastapi/exhaustive/pydantic-v1/resources/endpoints/resources/params/service/service.py @@ -46,7 +46,7 @@ def get_with_query(self, *, query: str, number: int, auth: ApiAuth) -> None: @abc.abstractmethod def get_with_allow_multiple_query( - self, *, query: typing.List[str], numer: typing.List[int], auth: ApiAuth + self, *, query: typing.List[str], number: typing.List[int], auth: ApiAuth ) -> None: """ GET with multiple of same query param @@ -257,7 +257,7 @@ def __init_get_with_allow_multiple_query(cls, router: fastapi.APIRouter) -> None new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) - elif parameter_name == "numer": + elif parameter_name == "number": new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) diff --git a/seed/fastapi/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml b/seed/fastapi/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/fastapi/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml +++ b/seed/fastapi/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py b/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/pydantic-v2/resources/endpoints/resources/params/service/service.py b/seed/fastapi/exhaustive/pydantic-v2/resources/endpoints/resources/params/service/service.py index ad16adbdc79..fbd93ae5be9 100644 --- a/seed/fastapi/exhaustive/pydantic-v2/resources/endpoints/resources/params/service/service.py +++ b/seed/fastapi/exhaustive/pydantic-v2/resources/endpoints/resources/params/service/service.py @@ -46,7 +46,7 @@ def get_with_query(self, *, query: str, number: int, auth: ApiAuth) -> None: @abc.abstractmethod def get_with_allow_multiple_query( - self, *, query: typing.List[str], numer: typing.List[int], auth: ApiAuth + self, *, query: typing.List[str], number: typing.List[int], auth: ApiAuth ) -> None: """ GET with multiple of same query param @@ -257,7 +257,7 @@ def __init_get_with_allow_multiple_query(cls, router: fastapi.APIRouter) -> None new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) - elif parameter_name == "numer": + elif parameter_name == "number": new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) diff --git a/seed/fastapi/exhaustive/skip-formatting/.mock/definition/endpoints/params.yml b/seed/fastapi/exhaustive/skip-formatting/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/fastapi/exhaustive/skip-formatting/.mock/definition/endpoints/params.yml +++ b/seed/fastapi/exhaustive/skip-formatting/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py b/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/exhaustive/skip-formatting/resources/endpoints/resources/params/service/service.py b/seed/fastapi/exhaustive/skip-formatting/resources/endpoints/resources/params/service/service.py index ad16adbdc79..fbd93ae5be9 100644 --- a/seed/fastapi/exhaustive/skip-formatting/resources/endpoints/resources/params/service/service.py +++ b/seed/fastapi/exhaustive/skip-formatting/resources/endpoints/resources/params/service/service.py @@ -46,7 +46,7 @@ def get_with_query(self, *, query: str, number: int, auth: ApiAuth) -> None: @abc.abstractmethod def get_with_allow_multiple_query( - self, *, query: typing.List[str], numer: typing.List[int], auth: ApiAuth + self, *, query: typing.List[str], number: typing.List[int], auth: ApiAuth ) -> None: """ GET with multiple of same query param @@ -257,7 +257,7 @@ def __init_get_with_allow_multiple_query(cls, router: fastapi.APIRouter) -> None new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) - elif parameter_name == "numer": + elif parameter_name == "number": new_parameters.append( parameter.replace(default=fastapi.Query(default=[])) ) diff --git a/seed/fastapi/extends/core/pydantic_utilities.py b/seed/fastapi/extends/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/extends/core/pydantic_utilities.py +++ b/seed/fastapi/extends/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/extra-properties/core/pydantic_utilities.py b/seed/fastapi/extra-properties/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/extra-properties/core/pydantic_utilities.py +++ b/seed/fastapi/extra-properties/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/file-download/core/pydantic_utilities.py b/seed/fastapi/file-download/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/file-download/core/pydantic_utilities.py +++ b/seed/fastapi/file-download/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/file-upload/.mock/definition/service.yml b/seed/fastapi/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/fastapi/file-upload/.mock/definition/service.yml +++ b/seed/fastapi/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/fastapi/file-upload/.mock/ir.json b/seed/fastapi/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/fastapi/file-upload/.mock/ir.json +++ b/seed/fastapi/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/fastapi/file-upload/core/pydantic_utilities.py b/seed/fastapi/file-upload/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/file-upload/core/pydantic_utilities.py +++ b/seed/fastapi/file-upload/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/folders/core/pydantic_utilities.py b/seed/fastapi/folders/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/folders/core/pydantic_utilities.py +++ b/seed/fastapi/folders/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/grpc-proto-exhaustive/core/pydantic_utilities.py b/seed/fastapi/grpc-proto-exhaustive/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/grpc-proto-exhaustive/core/pydantic_utilities.py +++ b/seed/fastapi/grpc-proto-exhaustive/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/grpc-proto/core/pydantic_utilities.py b/seed/fastapi/grpc-proto/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/grpc-proto/core/pydantic_utilities.py +++ b/seed/fastapi/grpc-proto/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/grpc/core/pydantic_utilities.py b/seed/fastapi/grpc/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/grpc/core/pydantic_utilities.py +++ b/seed/fastapi/grpc/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/idempotency-headers/core/pydantic_utilities.py b/seed/fastapi/idempotency-headers/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/idempotency-headers/core/pydantic_utilities.py +++ b/seed/fastapi/idempotency-headers/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/imdb/async-handlers/core/pydantic_utilities.py b/seed/fastapi/imdb/async-handlers/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/imdb/async-handlers/core/pydantic_utilities.py +++ b/seed/fastapi/imdb/async-handlers/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py b/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py +++ b/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py b/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py +++ b/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/imdb/v1_on_v2/core/pydantic_utilities.py b/seed/fastapi/imdb/v1_on_v2/core/pydantic_utilities.py index 98e5d4af884..9ba31f08d7d 100644 --- a/seed/fastapi/imdb/v1_on_v2/core/pydantic_utilities.py +++ b/seed/fastapi/imdb/v1_on_v2/core/pydantic_utilities.py @@ -60,7 +60,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -76,7 +76,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/inline-types/core/pydantic_utilities.py b/seed/fastapi/inline-types/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/inline-types/core/pydantic_utilities.py +++ b/seed/fastapi/inline-types/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/license/core/pydantic_utilities.py b/seed/fastapi/license/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/license/core/pydantic_utilities.py +++ b/seed/fastapi/license/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/mixed-case/core/pydantic_utilities.py b/seed/fastapi/mixed-case/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/mixed-case/core/pydantic_utilities.py +++ b/seed/fastapi/mixed-case/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/mixed-file-directory/core/pydantic_utilities.py b/seed/fastapi/mixed-file-directory/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/mixed-file-directory/core/pydantic_utilities.py +++ b/seed/fastapi/mixed-file-directory/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/multi-line-docs/.mock/definition/user.yml b/seed/fastapi/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/fastapi/multi-line-docs/.mock/definition/user.yml +++ b/seed/fastapi/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/fastapi/multi-line-docs/core/pydantic_utilities.py b/seed/fastapi/multi-line-docs/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/multi-line-docs/core/pydantic_utilities.py +++ b/seed/fastapi/multi-line-docs/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/multi-line-docs/resources/user/service/create_user_request.py b/seed/fastapi/multi-line-docs/resources/user/service/create_user_request.py index c57488d818d..f3cbbca1dcc 100644 --- a/seed/fastapi/multi-line-docs/resources/user/service/create_user_request.py +++ b/seed/fastapi/multi-line-docs/resources/user/service/create_user_request.py @@ -16,7 +16,7 @@ class CreateUserRequest(UniversalBaseModel): age: typing.Optional[int] = pydantic.Field(default=None) """ The age of the user. - This propery is not required. + This property is not required. """ if IS_PYDANTIC_V2: diff --git a/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py b/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py +++ b/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/multi-url-environment/core/pydantic_utilities.py b/seed/fastapi/multi-url-environment/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/multi-url-environment/core/pydantic_utilities.py +++ b/seed/fastapi/multi-url-environment/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/no-environment/core/pydantic_utilities.py b/seed/fastapi/no-environment/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/no-environment/core/pydantic_utilities.py +++ b/seed/fastapi/no-environment/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/nullable/core/pydantic_utilities.py b/seed/fastapi/nullable/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/nullable/core/pydantic_utilities.py +++ b/seed/fastapi/nullable/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/oauth-client-credentials-custom/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-custom/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/oauth-client-credentials-custom/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-custom/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/object/core/pydantic_utilities.py b/seed/fastapi/object/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/object/core/pydantic_utilities.py +++ b/seed/fastapi/object/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/objects-with-imports/core/pydantic_utilities.py b/seed/fastapi/objects-with-imports/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/objects-with-imports/core/pydantic_utilities.py +++ b/seed/fastapi/objects-with-imports/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/optional/core/pydantic_utilities.py b/seed/fastapi/optional/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/optional/core/pydantic_utilities.py +++ b/seed/fastapi/optional/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/package-yml/core/pydantic_utilities.py b/seed/fastapi/package-yml/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/package-yml/core/pydantic_utilities.py +++ b/seed/fastapi/package-yml/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/pagination/.mock/definition/users.yml b/seed/fastapi/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/fastapi/pagination/.mock/definition/users.yml +++ b/seed/fastapi/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/fastapi/pagination/core/pydantic_utilities.py b/seed/fastapi/pagination/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/pagination/core/pydantic_utilities.py +++ b/seed/fastapi/pagination/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/pagination/resources/users/service/service.py b/seed/fastapi/pagination/resources/users/service/service.py index bfc9a91875a..1367c6269c6 100644 --- a/seed/fastapi/pagination/resources/users/service/service.py +++ b/seed/fastapi/pagination/resources/users/service/service.py @@ -522,7 +522,7 @@ def __init_list_with_offset_step_pagination(cls, router: fastapi.APIRouter) -> N parameter.replace( default=fastapi.Query( default=None, - description="The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + description="The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", ) ) ) @@ -589,7 +589,7 @@ def __init_list_with_offset_pagination_has_next_page( parameter.replace( default=fastapi.Query( default=None, - description="The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + description="The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", ) ) ) diff --git a/seed/fastapi/path-parameters/core/pydantic_utilities.py b/seed/fastapi/path-parameters/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/path-parameters/core/pydantic_utilities.py +++ b/seed/fastapi/path-parameters/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/plain-text/core/pydantic_utilities.py b/seed/fastapi/plain-text/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/plain-text/core/pydantic_utilities.py +++ b/seed/fastapi/plain-text/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/reserved-keywords/core/pydantic_utilities.py b/seed/fastapi/reserved-keywords/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/reserved-keywords/core/pydantic_utilities.py +++ b/seed/fastapi/reserved-keywords/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/simple-fhir/core/pydantic_utilities.py b/seed/fastapi/simple-fhir/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/simple-fhir/core/pydantic_utilities.py +++ b/seed/fastapi/simple-fhir/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py b/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py +++ b/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py b/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py +++ b/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/trace/.mock/definition/submission.yml b/seed/fastapi/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/fastapi/trace/.mock/definition/submission.yml +++ b/seed/fastapi/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/fastapi/trace/core/pydantic_utilities.py b/seed/fastapi/trace/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/trace/core/pydantic_utilities.py +++ b/seed/fastapi/trace/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/trace/resources/submission/types/trace_responses_page.py b/seed/fastapi/trace/resources/submission/types/trace_responses_page.py index 8dd4cf360a9..0d7dd3c9b3d 100644 --- a/seed/fastapi/trace/resources/submission/types/trace_responses_page.py +++ b/seed/fastapi/trace/resources/submission/types/trace_responses_page.py @@ -10,7 +10,7 @@ class TraceResponsesPage(UniversalBaseModel): offset: typing.Optional[int] = pydantic.Field(default=None) """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ diff --git a/seed/fastapi/trace/resources/submission/types/trace_responses_page_v_2.py b/seed/fastapi/trace/resources/submission/types/trace_responses_page_v_2.py index df025fb925f..c0bff199fbb 100644 --- a/seed/fastapi/trace/resources/submission/types/trace_responses_page_v_2.py +++ b/seed/fastapi/trace/resources/submission/types/trace_responses_page_v_2.py @@ -10,7 +10,7 @@ class TraceResponsesPageV2(UniversalBaseModel): offset: typing.Optional[int] = pydantic.Field(default=None) """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ diff --git a/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py b/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py +++ b/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/unions/.mock/definition/types.yml b/seed/fastapi/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/fastapi/unions/.mock/definition/types.yml +++ b/seed/fastapi/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/fastapi/unions/core/pydantic_utilities.py b/seed/fastapi/unions/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/unions/core/pydantic_utilities.py +++ b/seed/fastapi/unions/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/unions/resources/types/types/union_with_optional_time.py b/seed/fastapi/unions/resources/types/types/union_with_optional_time.py index ecdd12d6c76..881da46beb2 100644 --- a/seed/fastapi/unions/resources/types/types/union_with_optional_time.py +++ b/seed/fastapi/unions/resources/types/types/union_with_optional_time.py @@ -24,14 +24,14 @@ def date(self, value: typing.Optional[dt.date]) -> UnionWithOptionalTime: __root__=_UnionWithOptionalTime.Date(type="date", value=value) ) # type: ignore - def dateimte(self, value: typing.Optional[dt.datetime]) -> UnionWithOptionalTime: + def datetime(self, value: typing.Optional[dt.datetime]) -> UnionWithOptionalTime: if IS_PYDANTIC_V2: return UnionWithOptionalTime( - root=_UnionWithOptionalTime.Dateimte(type="dateimte", value=value) + root=_UnionWithOptionalTime.Datetime(type="datetime", value=value) ) # type: ignore else: return UnionWithOptionalTime( - __root__=_UnionWithOptionalTime.Dateimte(type="dateimte", value=value) + __root__=_UnionWithOptionalTime.Datetime(type="datetime", value=value) ) # type: ignore @@ -40,23 +40,23 @@ class UnionWithOptionalTime(UniversalRootModel): if IS_PYDANTIC_V2: root: typing_extensions.Annotated[ - typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte], + typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime], pydantic.Field(discriminator="type"), ] def get_as_union( self, - ) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte]: + ) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime]: return self.root else: __root__: typing_extensions.Annotated[ - typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte], + typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime], pydantic.Field(discriminator="type"), ] def get_as_union( self, - ) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte]: + ) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime]: return self.__root__ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: @@ -68,13 +68,13 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: def visit( self, date: typing.Callable[[typing.Optional[dt.date]], T_Result], - dateimte: typing.Callable[[typing.Optional[dt.datetime]], T_Result], + datetime: typing.Callable[[typing.Optional[dt.datetime]], T_Result], ) -> T_Result: unioned_value = self.get_as_union() if unioned_value.type == "date": return date(unioned_value.value) - if unioned_value.type == "dateimte": - return dateimte(unioned_value.value) + if unioned_value.type == "datetime": + return datetime(unioned_value.value) class _UnionWithOptionalTime: @@ -82,8 +82,8 @@ class Date(UniversalBaseModel): type: typing.Literal["date"] = "date" value: typing.Optional[dt.date] = None - class Dateimte(UniversalBaseModel): - type: typing.Literal["dateimte"] = "dateimte" + class Datetime(UniversalBaseModel): + type: typing.Literal["datetime"] = "datetime" value: typing.Optional[dt.datetime] = None diff --git a/seed/fastapi/unknown/core/pydantic_utilities.py b/seed/fastapi/unknown/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/unknown/core/pydantic_utilities.py +++ b/seed/fastapi/unknown/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/validation/core/pydantic_utilities.py b/seed/fastapi/validation/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/validation/core/pydantic_utilities.py +++ b/seed/fastapi/validation/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/variables/core/pydantic_utilities.py b/seed/fastapi/variables/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/variables/core/pydantic_utilities.py +++ b/seed/fastapi/variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/version-no-default/core/pydantic_utilities.py b/seed/fastapi/version-no-default/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/version-no-default/core/pydantic_utilities.py +++ b/seed/fastapi/version-no-default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/version/core/pydantic_utilities.py b/seed/fastapi/version/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/version/core/pydantic_utilities.py +++ b/seed/fastapi/version/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/fastapi/websocket/core/pydantic_utilities.py b/seed/fastapi/websocket/core/pydantic_utilities.py index fe6359cf503..600117478e5 100644 --- a/seed/fastapi/websocket/core/pydantic_utilities.py +++ b/seed/fastapi/websocket/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/go-fiber/exhaustive/.mock/definition/endpoints/params.yml b/seed/go-fiber/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/go-fiber/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/go-fiber/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/go-fiber/exhaustive/endpoints/params.go b/seed/go-fiber/exhaustive/endpoints/params.go index de267008962..80e2d304923 100644 --- a/seed/go-fiber/exhaustive/endpoints/params.go +++ b/seed/go-fiber/exhaustive/endpoints/params.go @@ -7,8 +7,8 @@ import ( ) type GetWithMultipleQuery struct { - Query []string `query:"query"` - Numer []int `query:"numer"` + Query []string `query:"query"` + Number []int `query:"number"` } type GetWithInlinePathAndQuery struct { diff --git a/seed/go-fiber/file-upload/.mock/definition/service.yml b/seed/go-fiber/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/go-fiber/file-upload/.mock/definition/service.yml +++ b/seed/go-fiber/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/go-fiber/file-upload/.mock/ir.json b/seed/go-fiber/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/go-fiber/file-upload/.mock/ir.json +++ b/seed/go-fiber/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/go-fiber/file-upload/service.go b/seed/go-fiber/file-upload/service.go index 6b305287ee8..33af6457a9d 100644 --- a/seed/go-fiber/file-upload/service.go +++ b/seed/go-fiber/file-upload/service.go @@ -8,7 +8,7 @@ import ( internal "github.com/file-upload/fern/internal" ) -type JustFileWithQueryParamsRequet struct { +type JustFileWithQueryParamsRequest struct { MaybeString *string `query:"maybeString"` Integer int `query:"integer"` MaybeInteger *int `query:"maybeInteger"` diff --git a/seed/go-fiber/multi-line-docs/.mock/definition/user.yml b/seed/go-fiber/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/go-fiber/multi-line-docs/.mock/definition/user.yml +++ b/seed/go-fiber/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/go-fiber/multi-line-docs/user.go b/seed/go-fiber/multi-line-docs/user.go index 188cf0172ac..7acf6cd4017 100644 --- a/seed/go-fiber/multi-line-docs/user.go +++ b/seed/go-fiber/multi-line-docs/user.go @@ -13,7 +13,7 @@ type CreateUserRequest struct { // This name is unique to each user. Name string `json:"name" url:"-"` // The age of the user. - // This propery is not required. + // This property is not required. Age *int `json:"age,omitempty" url:"-"` } diff --git a/seed/go-fiber/pagination/.mock/definition/users.yml b/seed/go-fiber/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/go-fiber/pagination/.mock/definition/users.yml +++ b/seed/go-fiber/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/go-fiber/pagination/users.go b/seed/go-fiber/pagination/users.go index b5dd8c29692..e93650a0804 100644 --- a/seed/go-fiber/pagination/users.go +++ b/seed/go-fiber/pagination/users.go @@ -79,7 +79,7 @@ type ListUsersOffsetPaginationRequest struct { type ListWithOffsetPaginationHasNextPageRequest struct { // Defaults to first page Page *int `query:"page"` - // The maxiumum number of elements to return. + // The maximum number of elements to return. // This is also used as the step size in this // paginated endpoint. Limit *int `query:"limit"` @@ -89,7 +89,7 @@ type ListWithOffsetPaginationHasNextPageRequest struct { type ListUsersOffsetStepPaginationRequest struct { // Defaults to first page Page *int `query:"page"` - // The maxiumum number of elements to return. + // The maximum number of elements to return. // This is also used as the step size in this // paginated endpoint. Limit *int `query:"limit"` diff --git a/seed/go-fiber/unions/.mock/definition/types.yml b/seed/go-fiber/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/go-fiber/unions/.mock/definition/types.yml +++ b/seed/go-fiber/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/go-fiber/unions/types.go b/seed/go-fiber/unions/types.go index e444aee0916..f00497b42f7 100644 --- a/seed/go-fiber/unions/types.go +++ b/seed/go-fiber/unions/types.go @@ -695,15 +695,15 @@ func (u *UnionWithLiteral) validate() error { type UnionWithOptionalTime struct { Type string Date *time.Time - Dateimte *time.Time + Datetime *time.Time } func NewUnionWithOptionalTimeFromDate(value *time.Time) *UnionWithOptionalTime { return &UnionWithOptionalTime{Type: "date", Date: value} } -func NewUnionWithOptionalTimeFromDateimte(value *time.Time) *UnionWithOptionalTime { - return &UnionWithOptionalTime{Type: "dateimte", Dateimte: value} +func NewUnionWithOptionalTimeFromDatetime(value *time.Time) *UnionWithOptionalTime { + return &UnionWithOptionalTime{Type: "datetime", Datetime: value} } func (u *UnionWithOptionalTime) GetType() string { @@ -720,11 +720,11 @@ func (u *UnionWithOptionalTime) GetDate() *time.Time { return u.Date } -func (u *UnionWithOptionalTime) GetDateimte() *time.Time { +func (u *UnionWithOptionalTime) GetDatetime() *time.Time { if u == nil { return nil } - return u.Dateimte + return u.Datetime } func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { @@ -747,14 +747,14 @@ func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { return err } u.Date = valueUnmarshaler.Date.TimePtr() - case "dateimte": + case "datetime": var valueUnmarshaler struct { - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` } if err := json.Unmarshal(data, &valueUnmarshaler); err != nil { return err } - u.Dateimte = valueUnmarshaler.Dateimte.TimePtr() + u.Datetime = valueUnmarshaler.Datetime.TimePtr() } return nil } @@ -775,13 +775,13 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { Date: internal.NewOptionalDate(u.Date), } return json.Marshal(marshaler) - case "dateimte": + case "datetime": var marshaler = struct { Type string `json:"type"` - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` }{ - Type: "dateimte", - Dateimte: internal.NewOptionalDateTime(u.Dateimte), + Type: "datetime", + Datetime: internal.NewOptionalDateTime(u.Datetime), } return json.Marshal(marshaler) } @@ -789,7 +789,7 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { type UnionWithOptionalTimeVisitor interface { VisitDate(*time.Time) error - VisitDateimte(*time.Time) error + VisitDatetime(*time.Time) error } func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) error { @@ -798,8 +798,8 @@ func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) err return fmt.Errorf("invalid type %s in %T", u.Type, u) case "date": return visitor.VisitDate(u.Date) - case "dateimte": - return visitor.VisitDateimte(u.Dateimte) + case "datetime": + return visitor.VisitDatetime(u.Datetime) } } @@ -811,8 +811,8 @@ func (u *UnionWithOptionalTime) validate() error { if u.Date != nil { fields = append(fields, "date") } - if u.Dateimte != nil { - fields = append(fields, "dateimte") + if u.Datetime != nil { + fields = append(fields, "datetime") } if len(fields) == 0 { if u.Type != "" { diff --git a/seed/go-model/exhaustive/.mock/definition/endpoints/params.yml b/seed/go-model/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/go-model/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/go-model/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/go-model/file-upload/.mock/definition/service.yml b/seed/go-model/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/go-model/file-upload/.mock/definition/service.yml +++ b/seed/go-model/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/go-model/file-upload/.mock/ir.json b/seed/go-model/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/go-model/file-upload/.mock/ir.json +++ b/seed/go-model/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/go-model/multi-line-docs/.mock/definition/user.yml b/seed/go-model/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/go-model/multi-line-docs/.mock/definition/user.yml +++ b/seed/go-model/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/go-model/pagination/.mock/definition/users.yml b/seed/go-model/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/go-model/pagination/.mock/definition/users.yml +++ b/seed/go-model/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/go-model/unions/.mock/definition/types.yml b/seed/go-model/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/go-model/unions/.mock/definition/types.yml +++ b/seed/go-model/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/go-model/unions/types.go b/seed/go-model/unions/types.go index e444aee0916..f00497b42f7 100644 --- a/seed/go-model/unions/types.go +++ b/seed/go-model/unions/types.go @@ -695,15 +695,15 @@ func (u *UnionWithLiteral) validate() error { type UnionWithOptionalTime struct { Type string Date *time.Time - Dateimte *time.Time + Datetime *time.Time } func NewUnionWithOptionalTimeFromDate(value *time.Time) *UnionWithOptionalTime { return &UnionWithOptionalTime{Type: "date", Date: value} } -func NewUnionWithOptionalTimeFromDateimte(value *time.Time) *UnionWithOptionalTime { - return &UnionWithOptionalTime{Type: "dateimte", Dateimte: value} +func NewUnionWithOptionalTimeFromDatetime(value *time.Time) *UnionWithOptionalTime { + return &UnionWithOptionalTime{Type: "datetime", Datetime: value} } func (u *UnionWithOptionalTime) GetType() string { @@ -720,11 +720,11 @@ func (u *UnionWithOptionalTime) GetDate() *time.Time { return u.Date } -func (u *UnionWithOptionalTime) GetDateimte() *time.Time { +func (u *UnionWithOptionalTime) GetDatetime() *time.Time { if u == nil { return nil } - return u.Dateimte + return u.Datetime } func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { @@ -747,14 +747,14 @@ func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { return err } u.Date = valueUnmarshaler.Date.TimePtr() - case "dateimte": + case "datetime": var valueUnmarshaler struct { - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` } if err := json.Unmarshal(data, &valueUnmarshaler); err != nil { return err } - u.Dateimte = valueUnmarshaler.Dateimte.TimePtr() + u.Datetime = valueUnmarshaler.Datetime.TimePtr() } return nil } @@ -775,13 +775,13 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { Date: internal.NewOptionalDate(u.Date), } return json.Marshal(marshaler) - case "dateimte": + case "datetime": var marshaler = struct { Type string `json:"type"` - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` }{ - Type: "dateimte", - Dateimte: internal.NewOptionalDateTime(u.Dateimte), + Type: "datetime", + Datetime: internal.NewOptionalDateTime(u.Datetime), } return json.Marshal(marshaler) } @@ -789,7 +789,7 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { type UnionWithOptionalTimeVisitor interface { VisitDate(*time.Time) error - VisitDateimte(*time.Time) error + VisitDatetime(*time.Time) error } func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) error { @@ -798,8 +798,8 @@ func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) err return fmt.Errorf("invalid type %s in %T", u.Type, u) case "date": return visitor.VisitDate(u.Date) - case "dateimte": - return visitor.VisitDateimte(u.Dateimte) + case "datetime": + return visitor.VisitDatetime(u.Datetime) } } @@ -811,8 +811,8 @@ func (u *UnionWithOptionalTime) validate() error { if u.Date != nil { fields = append(fields, "date") } - if u.Dateimte != nil { - fields = append(fields, "dateimte") + if u.Datetime != nil { + fields = append(fields, "datetime") } if len(fields) == 0 { if u.Type != "" { diff --git a/seed/go-sdk/alias/internal/retrier.go b/seed/go-sdk/alias/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/alias/internal/retrier.go +++ b/seed/go-sdk/alias/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/alias/option/request_option.go b/seed/go-sdk/alias/option/request_option.go index d83b60d4d63..2a2f2cec84a 100644 --- a/seed/go-sdk/alias/option/request_option.go +++ b/seed/go-sdk/alias/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/any-auth/internal/retrier.go b/seed/go-sdk/any-auth/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/any-auth/internal/retrier.go +++ b/seed/go-sdk/any-auth/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/any-auth/option/request_option.go b/seed/go-sdk/any-auth/option/request_option.go index 18f6f607c04..8bd6c21aba3 100644 --- a/seed/go-sdk/any-auth/option/request_option.go +++ b/seed/go-sdk/any-auth/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/api-wide-base-path/internal/retrier.go b/seed/go-sdk/api-wide-base-path/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/api-wide-base-path/internal/retrier.go +++ b/seed/go-sdk/api-wide-base-path/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/api-wide-base-path/option/request_option.go b/seed/go-sdk/api-wide-base-path/option/request_option.go index 0f37904291f..348285d4202 100644 --- a/seed/go-sdk/api-wide-base-path/option/request_option.go +++ b/seed/go-sdk/api-wide-base-path/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/audiences/internal/retrier.go b/seed/go-sdk/audiences/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/audiences/internal/retrier.go +++ b/seed/go-sdk/audiences/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/audiences/option/request_option.go b/seed/go-sdk/audiences/option/request_option.go index 6fd07e5e571..82c102e4ee5 100644 --- a/seed/go-sdk/audiences/option/request_option.go +++ b/seed/go-sdk/audiences/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/auth-environment-variables/internal/retrier.go b/seed/go-sdk/auth-environment-variables/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/auth-environment-variables/internal/retrier.go +++ b/seed/go-sdk/auth-environment-variables/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/auth-environment-variables/option/request_option.go b/seed/go-sdk/auth-environment-variables/option/request_option.go index 29659d0c96d..db0a13d515d 100644 --- a/seed/go-sdk/auth-environment-variables/option/request_option.go +++ b/seed/go-sdk/auth-environment-variables/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/basic-auth-environment-variables/internal/retrier.go b/seed/go-sdk/basic-auth-environment-variables/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/basic-auth-environment-variables/internal/retrier.go +++ b/seed/go-sdk/basic-auth-environment-variables/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/basic-auth-environment-variables/option/request_option.go b/seed/go-sdk/basic-auth-environment-variables/option/request_option.go index f7cfa356a98..b564f8b2f7f 100644 --- a/seed/go-sdk/basic-auth-environment-variables/option/request_option.go +++ b/seed/go-sdk/basic-auth-environment-variables/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/basic-auth/internal/retrier.go b/seed/go-sdk/basic-auth/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/basic-auth/internal/retrier.go +++ b/seed/go-sdk/basic-auth/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/basic-auth/option/request_option.go b/seed/go-sdk/basic-auth/option/request_option.go index 55d8c1a3fcb..6dfa6c72c84 100644 --- a/seed/go-sdk/basic-auth/option/request_option.go +++ b/seed/go-sdk/basic-auth/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/bearer-token-environment-variable/internal/retrier.go b/seed/go-sdk/bearer-token-environment-variable/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/bearer-token-environment-variable/internal/retrier.go +++ b/seed/go-sdk/bearer-token-environment-variable/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/bearer-token-environment-variable/option/request_option.go b/seed/go-sdk/bearer-token-environment-variable/option/request_option.go index 5a845692a36..210c63e2540 100644 --- a/seed/go-sdk/bearer-token-environment-variable/option/request_option.go +++ b/seed/go-sdk/bearer-token-environment-variable/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/bytes/internal/retrier.go b/seed/go-sdk/bytes/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/bytes/internal/retrier.go +++ b/seed/go-sdk/bytes/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/bytes/option/request_option.go b/seed/go-sdk/bytes/option/request_option.go index 9462b1d1b99..ea683df0ab6 100644 --- a/seed/go-sdk/bytes/option/request_option.go +++ b/seed/go-sdk/bytes/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/circular-references-advanced/internal/retrier.go b/seed/go-sdk/circular-references-advanced/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/circular-references-advanced/internal/retrier.go +++ b/seed/go-sdk/circular-references-advanced/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/circular-references-advanced/option/request_option.go b/seed/go-sdk/circular-references-advanced/option/request_option.go index 6677fec7f4c..f9550ead448 100644 --- a/seed/go-sdk/circular-references-advanced/option/request_option.go +++ b/seed/go-sdk/circular-references-advanced/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/circular-references/internal/retrier.go b/seed/go-sdk/circular-references/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/circular-references/internal/retrier.go +++ b/seed/go-sdk/circular-references/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/circular-references/option/request_option.go b/seed/go-sdk/circular-references/option/request_option.go index a080ba289c5..1ab8cc0de58 100644 --- a/seed/go-sdk/circular-references/option/request_option.go +++ b/seed/go-sdk/circular-references/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/code-samples/core/retrier.go b/seed/go-sdk/code-samples/core/retrier.go index ea24916b786..50a65b3b48b 100644 --- a/seed/go-sdk/code-samples/core/retrier.go +++ b/seed/go-sdk/code-samples/core/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -144,7 +144,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/code-samples/option/request_option.go b/seed/go-sdk/code-samples/option/request_option.go index 89fa29808e7..eb7a76a45a7 100644 --- a/seed/go-sdk/code-samples/option/request_option.go +++ b/seed/go-sdk/code-samples/option/request_option.go @@ -7,7 +7,7 @@ import ( http "net/http" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/cross-package-type-names/internal/retrier.go b/seed/go-sdk/cross-package-type-names/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/cross-package-type-names/internal/retrier.go +++ b/seed/go-sdk/cross-package-type-names/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/cross-package-type-names/option/request_option.go b/seed/go-sdk/cross-package-type-names/option/request_option.go index 7dd2f1526ee..ae639f0704e 100644 --- a/seed/go-sdk/cross-package-type-names/option/request_option.go +++ b/seed/go-sdk/cross-package-type-names/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/custom-auth/internal/retrier.go b/seed/go-sdk/custom-auth/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/custom-auth/internal/retrier.go +++ b/seed/go-sdk/custom-auth/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/custom-auth/option/request_option.go b/seed/go-sdk/custom-auth/option/request_option.go index ff320ca86f5..cf8b1e39ba1 100644 --- a/seed/go-sdk/custom-auth/option/request_option.go +++ b/seed/go-sdk/custom-auth/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/enum/internal/retrier.go b/seed/go-sdk/enum/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/enum/internal/retrier.go +++ b/seed/go-sdk/enum/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/enum/option/request_option.go b/seed/go-sdk/enum/option/request_option.go index 50effbdf370..48da944bb47 100644 --- a/seed/go-sdk/enum/option/request_option.go +++ b/seed/go-sdk/enum/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/error-property/internal/retrier.go b/seed/go-sdk/error-property/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/error-property/internal/retrier.go +++ b/seed/go-sdk/error-property/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/error-property/option/request_option.go b/seed/go-sdk/error-property/option/request_option.go index 0b90ab14b6f..c7ebdef7d33 100644 --- a/seed/go-sdk/error-property/option/request_option.go +++ b/seed/go-sdk/error-property/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/examples/always-send-required-properties/internal/retrier.go b/seed/go-sdk/examples/always-send-required-properties/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/examples/always-send-required-properties/internal/retrier.go +++ b/seed/go-sdk/examples/always-send-required-properties/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/examples/always-send-required-properties/option/request_option.go b/seed/go-sdk/examples/always-send-required-properties/option/request_option.go index 684e14bf7d0..10a50f097a0 100644 --- a/seed/go-sdk/examples/always-send-required-properties/option/request_option.go +++ b/seed/go-sdk/examples/always-send-required-properties/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/examples/client-name-with-custom-constructor-name/internal/retrier.go b/seed/go-sdk/examples/client-name-with-custom-constructor-name/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/examples/client-name-with-custom-constructor-name/internal/retrier.go +++ b/seed/go-sdk/examples/client-name-with-custom-constructor-name/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/examples/client-name-with-custom-constructor-name/option/request_option.go b/seed/go-sdk/examples/client-name-with-custom-constructor-name/option/request_option.go index 684e14bf7d0..10a50f097a0 100644 --- a/seed/go-sdk/examples/client-name-with-custom-constructor-name/option/request_option.go +++ b/seed/go-sdk/examples/client-name-with-custom-constructor-name/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/examples/client-name/internal/retrier.go b/seed/go-sdk/examples/client-name/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/examples/client-name/internal/retrier.go +++ b/seed/go-sdk/examples/client-name/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/examples/client-name/option/request_option.go b/seed/go-sdk/examples/client-name/option/request_option.go index 684e14bf7d0..10a50f097a0 100644 --- a/seed/go-sdk/examples/client-name/option/request_option.go +++ b/seed/go-sdk/examples/client-name/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/examples/exported-client-name/internal/retrier.go b/seed/go-sdk/examples/exported-client-name/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/examples/exported-client-name/internal/retrier.go +++ b/seed/go-sdk/examples/exported-client-name/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/examples/exported-client-name/option/request_option.go b/seed/go-sdk/examples/exported-client-name/option/request_option.go index 684e14bf7d0..10a50f097a0 100644 --- a/seed/go-sdk/examples/exported-client-name/option/request_option.go +++ b/seed/go-sdk/examples/exported-client-name/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/examples/no-custom-config/internal/retrier.go b/seed/go-sdk/examples/no-custom-config/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/examples/no-custom-config/internal/retrier.go +++ b/seed/go-sdk/examples/no-custom-config/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/examples/no-custom-config/option/request_option.go b/seed/go-sdk/examples/no-custom-config/option/request_option.go index 684e14bf7d0..10a50f097a0 100644 --- a/seed/go-sdk/examples/no-custom-config/option/request_option.go +++ b/seed/go-sdk/examples/no-custom-config/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/extends/internal/retrier.go b/seed/go-sdk/extends/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/extends/internal/retrier.go +++ b/seed/go-sdk/extends/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/extends/option/request_option.go b/seed/go-sdk/extends/option/request_option.go index 42e7ed2896b..56252d5b9cd 100644 --- a/seed/go-sdk/extends/option/request_option.go +++ b/seed/go-sdk/extends/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/extra-properties/internal/retrier.go b/seed/go-sdk/extra-properties/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/extra-properties/internal/retrier.go +++ b/seed/go-sdk/extra-properties/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/extra-properties/option/request_option.go b/seed/go-sdk/extra-properties/option/request_option.go index c954c42bcc2..08d0915e0da 100644 --- a/seed/go-sdk/extra-properties/option/request_option.go +++ b/seed/go-sdk/extra-properties/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/file-download/internal/retrier.go b/seed/go-sdk/file-download/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/file-download/internal/retrier.go +++ b/seed/go-sdk/file-download/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/file-download/option/request_option.go b/seed/go-sdk/file-download/option/request_option.go index cc97d89d793..e69cd5c0077 100644 --- a/seed/go-sdk/file-download/option/request_option.go +++ b/seed/go-sdk/file-download/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/file-upload/inline-file-properties/.mock/definition/service.yml b/seed/go-sdk/file-upload/inline-file-properties/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/go-sdk/file-upload/inline-file-properties/.mock/definition/service.yml +++ b/seed/go-sdk/file-upload/inline-file-properties/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/go-sdk/file-upload/inline-file-properties/.mock/ir.json b/seed/go-sdk/file-upload/inline-file-properties/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/go-sdk/file-upload/inline-file-properties/.mock/ir.json +++ b/seed/go-sdk/file-upload/inline-file-properties/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/go-sdk/file-upload/inline-file-properties/internal/retrier.go b/seed/go-sdk/file-upload/inline-file-properties/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/file-upload/inline-file-properties/internal/retrier.go +++ b/seed/go-sdk/file-upload/inline-file-properties/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/file-upload/inline-file-properties/option/request_option.go b/seed/go-sdk/file-upload/inline-file-properties/option/request_option.go index 740059a6b54..84d291b607a 100644 --- a/seed/go-sdk/file-upload/inline-file-properties/option/request_option.go +++ b/seed/go-sdk/file-upload/inline-file-properties/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/file-upload/inline-file-properties/service.go b/seed/go-sdk/file-upload/inline-file-properties/service.go index efa5f0bc98a..3172c1ede41 100644 --- a/seed/go-sdk/file-upload/inline-file-properties/service.go +++ b/seed/go-sdk/file-upload/inline-file-properties/service.go @@ -9,11 +9,11 @@ import ( io "io" ) -type JustFileRequet struct { +type JustFileRequest struct { File io.Reader `json:"-" url:"-"` } -type JustFileWithQueryParamsRequet struct { +type JustFileWithQueryParamsRequest struct { MaybeString *string `json:"-" url:"maybeString,omitempty"` Integer int `json:"-" url:"integer"` MaybeInteger *int `json:"-" url:"maybeInteger,omitempty"` diff --git a/seed/go-sdk/file-upload/inline-file-properties/service/client.go b/seed/go-sdk/file-upload/inline-file-properties/service/client.go index 42590150e81..80776cdd700 100644 --- a/seed/go-sdk/file-upload/inline-file-properties/service/client.go +++ b/seed/go-sdk/file-upload/inline-file-properties/service/client.go @@ -130,7 +130,7 @@ func (c *Client) Post( func (c *Client) JustFile( ctx context.Context, - request *fileuploadgo.JustFileRequet, + request *fileuploadgo.JustFileRequest, opts ...option.RequestOption, ) error { options := core.NewRequestOptions(opts...) @@ -173,7 +173,7 @@ func (c *Client) JustFile( func (c *Client) JustFileWithQueryParams( ctx context.Context, - request *fileuploadgo.JustFileWithQueryParamsRequet, + request *fileuploadgo.JustFileWithQueryParamsRequest, opts ...option.RequestOption, ) error { options := core.NewRequestOptions(opts...) diff --git a/seed/go-sdk/file-upload/no-custom-config/.mock/definition/service.yml b/seed/go-sdk/file-upload/no-custom-config/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/go-sdk/file-upload/no-custom-config/.mock/definition/service.yml +++ b/seed/go-sdk/file-upload/no-custom-config/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/go-sdk/file-upload/no-custom-config/.mock/ir.json b/seed/go-sdk/file-upload/no-custom-config/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/go-sdk/file-upload/no-custom-config/.mock/ir.json +++ b/seed/go-sdk/file-upload/no-custom-config/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/go-sdk/file-upload/no-custom-config/internal/retrier.go b/seed/go-sdk/file-upload/no-custom-config/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/file-upload/no-custom-config/internal/retrier.go +++ b/seed/go-sdk/file-upload/no-custom-config/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/file-upload/no-custom-config/option/request_option.go b/seed/go-sdk/file-upload/no-custom-config/option/request_option.go index 22042534c4d..b9016a99c19 100644 --- a/seed/go-sdk/file-upload/no-custom-config/option/request_option.go +++ b/seed/go-sdk/file-upload/no-custom-config/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/file-upload/no-custom-config/service.go b/seed/go-sdk/file-upload/no-custom-config/service.go index 87ad283f280..23eebc48742 100644 --- a/seed/go-sdk/file-upload/no-custom-config/service.go +++ b/seed/go-sdk/file-upload/no-custom-config/service.go @@ -8,7 +8,7 @@ import ( internal "github.com/file-upload/fern/internal" ) -type JustFileWithQueryParamsRequet struct { +type JustFileWithQueryParamsRequest struct { MaybeString *string `json:"-" url:"maybeString,omitempty"` Integer int `json:"-" url:"integer"` MaybeInteger *int `json:"-" url:"maybeInteger,omitempty"` diff --git a/seed/go-sdk/file-upload/no-custom-config/service/client.go b/seed/go-sdk/file-upload/no-custom-config/service/client.go index dd1fee93e8c..040d2fc3f03 100644 --- a/seed/go-sdk/file-upload/no-custom-config/service/client.go +++ b/seed/go-sdk/file-upload/no-custom-config/service/client.go @@ -179,7 +179,7 @@ func (c *Client) JustFile( func (c *Client) JustFileWithQueryParams( ctx context.Context, file io.Reader, - request *fern.JustFileWithQueryParamsRequet, + request *fern.JustFileWithQueryParamsRequest, opts ...option.RequestOption, ) error { options := core.NewRequestOptions(opts...) diff --git a/seed/go-sdk/folders/internal/retrier.go b/seed/go-sdk/folders/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/folders/internal/retrier.go +++ b/seed/go-sdk/folders/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/folders/option/request_option.go b/seed/go-sdk/folders/option/request_option.go index 17401450b21..1c489dfe21b 100644 --- a/seed/go-sdk/folders/option/request_option.go +++ b/seed/go-sdk/folders/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/go-content-type/internal/retrier.go b/seed/go-sdk/go-content-type/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/go-content-type/internal/retrier.go +++ b/seed/go-sdk/go-content-type/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/go-content-type/option/request_option.go b/seed/go-sdk/go-content-type/option/request_option.go index a6227b02197..9894478343f 100644 --- a/seed/go-sdk/go-content-type/option/request_option.go +++ b/seed/go-sdk/go-content-type/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/grpc-proto-exhaustive/internal/retrier.go b/seed/go-sdk/grpc-proto-exhaustive/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/grpc-proto-exhaustive/internal/retrier.go +++ b/seed/go-sdk/grpc-proto-exhaustive/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/grpc-proto-exhaustive/option/request_option.go b/seed/go-sdk/grpc-proto-exhaustive/option/request_option.go index 5cf734e7b24..1cfdce91cce 100644 --- a/seed/go-sdk/grpc-proto-exhaustive/option/request_option.go +++ b/seed/go-sdk/grpc-proto-exhaustive/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/grpc-proto/internal/retrier.go b/seed/go-sdk/grpc-proto/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/grpc-proto/internal/retrier.go +++ b/seed/go-sdk/grpc-proto/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/grpc-proto/option/request_option.go b/seed/go-sdk/grpc-proto/option/request_option.go index b4371fdf8d6..c8d3058c5ea 100644 --- a/seed/go-sdk/grpc-proto/option/request_option.go +++ b/seed/go-sdk/grpc-proto/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/idempotency-headers/internal/retrier.go b/seed/go-sdk/idempotency-headers/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/idempotency-headers/internal/retrier.go +++ b/seed/go-sdk/idempotency-headers/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/idempotency-headers/option/idempotent_request_option.go b/seed/go-sdk/idempotency-headers/option/idempotent_request_option.go index 4a39e8770b6..1e38ad3c2c7 100644 --- a/seed/go-sdk/idempotency-headers/option/idempotent_request_option.go +++ b/seed/go-sdk/idempotency-headers/option/idempotent_request_option.go @@ -6,7 +6,7 @@ import ( core "github.com/idempotency-headers/fern/core" ) -// IdempotentRequestOption adapts the behavior of an indivdual request. +// IdempotentRequestOption adapts the behavior of an individual request. type IdempotentRequestOption = core.IdempotentRequestOption // WithIdempotencyKey sets the idempotencyKey request header. diff --git a/seed/go-sdk/idempotency-headers/option/request_option.go b/seed/go-sdk/idempotency-headers/option/request_option.go index 7f7d8c59774..dad111175bb 100644 --- a/seed/go-sdk/idempotency-headers/option/request_option.go +++ b/seed/go-sdk/idempotency-headers/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/internal/retrier.go b/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/internal/retrier.go +++ b/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/option/request_option.go b/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/option/request_option.go index 017ea25a61d..a328c0c9748 100644 --- a/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/option/request_option.go +++ b/seed/go-sdk/imdb/flat-package-layout-with-custom-client-name/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/imdb/flat-package-layout/internal/retrier.go b/seed/go-sdk/imdb/flat-package-layout/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/imdb/flat-package-layout/internal/retrier.go +++ b/seed/go-sdk/imdb/flat-package-layout/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/imdb/flat-package-layout/option/request_option.go b/seed/go-sdk/imdb/flat-package-layout/option/request_option.go index 017ea25a61d..a328c0c9748 100644 --- a/seed/go-sdk/imdb/flat-package-layout/option/request_option.go +++ b/seed/go-sdk/imdb/flat-package-layout/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/imdb/no-custom-config/internal/retrier.go b/seed/go-sdk/imdb/no-custom-config/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/imdb/no-custom-config/internal/retrier.go +++ b/seed/go-sdk/imdb/no-custom-config/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/imdb/no-custom-config/option/request_option.go b/seed/go-sdk/imdb/no-custom-config/option/request_option.go index 017ea25a61d..a328c0c9748 100644 --- a/seed/go-sdk/imdb/no-custom-config/option/request_option.go +++ b/seed/go-sdk/imdb/no-custom-config/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/inline-types/internal/retrier.go b/seed/go-sdk/inline-types/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/inline-types/internal/retrier.go +++ b/seed/go-sdk/inline-types/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/inline-types/option/request_option.go b/seed/go-sdk/inline-types/option/request_option.go index b9c9cd68f5e..99d1208e59f 100644 --- a/seed/go-sdk/inline-types/option/request_option.go +++ b/seed/go-sdk/inline-types/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/license/internal/retrier.go b/seed/go-sdk/license/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/license/internal/retrier.go +++ b/seed/go-sdk/license/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/license/option/request_option.go b/seed/go-sdk/license/option/request_option.go index 1af32c60c04..7d4436cceb4 100644 --- a/seed/go-sdk/license/option/request_option.go +++ b/seed/go-sdk/license/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/literal/internal/retrier.go b/seed/go-sdk/literal/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/literal/internal/retrier.go +++ b/seed/go-sdk/literal/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/literal/option/request_option.go b/seed/go-sdk/literal/option/request_option.go index 5bbcc618c54..43794d09985 100644 --- a/seed/go-sdk/literal/option/request_option.go +++ b/seed/go-sdk/literal/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/mixed-case/internal/retrier.go b/seed/go-sdk/mixed-case/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/mixed-case/internal/retrier.go +++ b/seed/go-sdk/mixed-case/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/mixed-case/option/request_option.go b/seed/go-sdk/mixed-case/option/request_option.go index 1e620471334..a0fadcf50d6 100644 --- a/seed/go-sdk/mixed-case/option/request_option.go +++ b/seed/go-sdk/mixed-case/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/mixed-file-directory/internal/retrier.go b/seed/go-sdk/mixed-file-directory/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/mixed-file-directory/internal/retrier.go +++ b/seed/go-sdk/mixed-file-directory/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/mixed-file-directory/option/request_option.go b/seed/go-sdk/mixed-file-directory/option/request_option.go index 80a4f62b8a6..66286cd3b0b 100644 --- a/seed/go-sdk/mixed-file-directory/option/request_option.go +++ b/seed/go-sdk/mixed-file-directory/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/multi-line-docs/.mock/definition/user.yml b/seed/go-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/go-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/go-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/go-sdk/multi-line-docs/internal/retrier.go b/seed/go-sdk/multi-line-docs/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/multi-line-docs/internal/retrier.go +++ b/seed/go-sdk/multi-line-docs/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/multi-line-docs/option/request_option.go b/seed/go-sdk/multi-line-docs/option/request_option.go index fa4df3ab81d..11d07e621b2 100644 --- a/seed/go-sdk/multi-line-docs/option/request_option.go +++ b/seed/go-sdk/multi-line-docs/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/multi-line-docs/user.go b/seed/go-sdk/multi-line-docs/user.go index af7f0320283..64aa1e03d7a 100644 --- a/seed/go-sdk/multi-line-docs/user.go +++ b/seed/go-sdk/multi-line-docs/user.go @@ -13,7 +13,7 @@ type CreateUserRequest struct { // This name is unique to each user. Name string `json:"name" url:"-"` // The age of the user. - // This propery is not required. + // This property is not required. Age *int `json:"age,omitempty" url:"-"` } diff --git a/seed/go-sdk/multi-url-environment-no-default/internal/retrier.go b/seed/go-sdk/multi-url-environment-no-default/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/multi-url-environment-no-default/internal/retrier.go +++ b/seed/go-sdk/multi-url-environment-no-default/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/multi-url-environment-no-default/option/request_option.go b/seed/go-sdk/multi-url-environment-no-default/option/request_option.go index 9773412cc10..9f27c1be289 100644 --- a/seed/go-sdk/multi-url-environment-no-default/option/request_option.go +++ b/seed/go-sdk/multi-url-environment-no-default/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/multi-url-environment/internal/retrier.go b/seed/go-sdk/multi-url-environment/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/multi-url-environment/internal/retrier.go +++ b/seed/go-sdk/multi-url-environment/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/multi-url-environment/option/request_option.go b/seed/go-sdk/multi-url-environment/option/request_option.go index 2b92294ba43..e7084fdf58e 100644 --- a/seed/go-sdk/multi-url-environment/option/request_option.go +++ b/seed/go-sdk/multi-url-environment/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/no-environment/internal/retrier.go b/seed/go-sdk/no-environment/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/no-environment/internal/retrier.go +++ b/seed/go-sdk/no-environment/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/no-environment/option/request_option.go b/seed/go-sdk/no-environment/option/request_option.go index b26dce106f7..fee5537b95a 100644 --- a/seed/go-sdk/no-environment/option/request_option.go +++ b/seed/go-sdk/no-environment/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/nullable/internal/retrier.go b/seed/go-sdk/nullable/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/nullable/internal/retrier.go +++ b/seed/go-sdk/nullable/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/nullable/option/request_option.go b/seed/go-sdk/nullable/option/request_option.go index d7eb0b78339..300030d5723 100644 --- a/seed/go-sdk/nullable/option/request_option.go +++ b/seed/go-sdk/nullable/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/oauth-client-credentials-custom/internal/retrier.go b/seed/go-sdk/oauth-client-credentials-custom/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/oauth-client-credentials-custom/internal/retrier.go +++ b/seed/go-sdk/oauth-client-credentials-custom/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/oauth-client-credentials-custom/option/request_option.go b/seed/go-sdk/oauth-client-credentials-custom/option/request_option.go index daff078fe01..b3917cf36f3 100644 --- a/seed/go-sdk/oauth-client-credentials-custom/option/request_option.go +++ b/seed/go-sdk/oauth-client-credentials-custom/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/oauth-client-credentials-default/internal/retrier.go b/seed/go-sdk/oauth-client-credentials-default/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/oauth-client-credentials-default/internal/retrier.go +++ b/seed/go-sdk/oauth-client-credentials-default/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/oauth-client-credentials-default/option/request_option.go b/seed/go-sdk/oauth-client-credentials-default/option/request_option.go index a41ab223f39..7b0b3977d82 100644 --- a/seed/go-sdk/oauth-client-credentials-default/option/request_option.go +++ b/seed/go-sdk/oauth-client-credentials-default/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/oauth-client-credentials-environment-variables/internal/retrier.go b/seed/go-sdk/oauth-client-credentials-environment-variables/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/oauth-client-credentials-environment-variables/internal/retrier.go +++ b/seed/go-sdk/oauth-client-credentials-environment-variables/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/oauth-client-credentials-environment-variables/option/request_option.go b/seed/go-sdk/oauth-client-credentials-environment-variables/option/request_option.go index 8dcea85ffad..379255137e4 100644 --- a/seed/go-sdk/oauth-client-credentials-environment-variables/option/request_option.go +++ b/seed/go-sdk/oauth-client-credentials-environment-variables/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/oauth-client-credentials-nested-root/internal/retrier.go b/seed/go-sdk/oauth-client-credentials-nested-root/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/oauth-client-credentials-nested-root/internal/retrier.go +++ b/seed/go-sdk/oauth-client-credentials-nested-root/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/oauth-client-credentials-nested-root/option/request_option.go b/seed/go-sdk/oauth-client-credentials-nested-root/option/request_option.go index 1288cc4a178..5598fc5c108 100644 --- a/seed/go-sdk/oauth-client-credentials-nested-root/option/request_option.go +++ b/seed/go-sdk/oauth-client-credentials-nested-root/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/oauth-client-credentials/internal/retrier.go b/seed/go-sdk/oauth-client-credentials/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/oauth-client-credentials/internal/retrier.go +++ b/seed/go-sdk/oauth-client-credentials/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/oauth-client-credentials/option/request_option.go b/seed/go-sdk/oauth-client-credentials/option/request_option.go index f2583d773a5..3ea818ff736 100644 --- a/seed/go-sdk/oauth-client-credentials/option/request_option.go +++ b/seed/go-sdk/oauth-client-credentials/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/object/internal/retrier.go b/seed/go-sdk/object/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/object/internal/retrier.go +++ b/seed/go-sdk/object/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/object/option/request_option.go b/seed/go-sdk/object/option/request_option.go index 66ccc3b431c..8ee1828dffd 100644 --- a/seed/go-sdk/object/option/request_option.go +++ b/seed/go-sdk/object/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/objects-with-imports/internal/retrier.go b/seed/go-sdk/objects-with-imports/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/objects-with-imports/internal/retrier.go +++ b/seed/go-sdk/objects-with-imports/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/objects-with-imports/option/request_option.go b/seed/go-sdk/objects-with-imports/option/request_option.go index 03c3fdf6dc2..ab6f1b1255c 100644 --- a/seed/go-sdk/objects-with-imports/option/request_option.go +++ b/seed/go-sdk/objects-with-imports/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/optional/internal/retrier.go b/seed/go-sdk/optional/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/optional/internal/retrier.go +++ b/seed/go-sdk/optional/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/optional/option/request_option.go b/seed/go-sdk/optional/option/request_option.go index d177a29e98f..7831f724b98 100644 --- a/seed/go-sdk/optional/option/request_option.go +++ b/seed/go-sdk/optional/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/internal/retrier.go b/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/internal/retrier.go +++ b/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/option/request_option.go b/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/option/request_option.go index f3d7c038b96..4a0352df799 100644 --- a/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/option/request_option.go +++ b/seed/go-sdk/package-yml/flat-package-layout-with-custom-client-name/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/package-yml/flat-package-layout/internal/retrier.go b/seed/go-sdk/package-yml/flat-package-layout/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/package-yml/flat-package-layout/internal/retrier.go +++ b/seed/go-sdk/package-yml/flat-package-layout/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/package-yml/flat-package-layout/option/request_option.go b/seed/go-sdk/package-yml/flat-package-layout/option/request_option.go index f3d7c038b96..4a0352df799 100644 --- a/seed/go-sdk/package-yml/flat-package-layout/option/request_option.go +++ b/seed/go-sdk/package-yml/flat-package-layout/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/package-yml/no-custom-config/internal/retrier.go b/seed/go-sdk/package-yml/no-custom-config/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/package-yml/no-custom-config/internal/retrier.go +++ b/seed/go-sdk/package-yml/no-custom-config/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/package-yml/no-custom-config/option/request_option.go b/seed/go-sdk/package-yml/no-custom-config/option/request_option.go index f3d7c038b96..4a0352df799 100644 --- a/seed/go-sdk/package-yml/no-custom-config/option/request_option.go +++ b/seed/go-sdk/package-yml/no-custom-config/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/pagination/.mock/definition/users.yml b/seed/go-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/go-sdk/pagination/.mock/definition/users.yml +++ b/seed/go-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/go-sdk/pagination/internal/retrier.go b/seed/go-sdk/pagination/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/pagination/internal/retrier.go +++ b/seed/go-sdk/pagination/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/pagination/option/request_option.go b/seed/go-sdk/pagination/option/request_option.go index 0d86a8b0a52..db37fa484cd 100644 --- a/seed/go-sdk/pagination/option/request_option.go +++ b/seed/go-sdk/pagination/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/pagination/users.go b/seed/go-sdk/pagination/users.go index df8cdd8d0aa..689a12533a1 100644 --- a/seed/go-sdk/pagination/users.go +++ b/seed/go-sdk/pagination/users.go @@ -79,7 +79,7 @@ type ListUsersOffsetPaginationRequest struct { type ListWithOffsetPaginationHasNextPageRequest struct { // Defaults to first page Page *int `json:"-" url:"page,omitempty"` - // The maxiumum number of elements to return. + // The maximum number of elements to return. // This is also used as the step size in this // paginated endpoint. Limit *int `json:"-" url:"limit,omitempty"` @@ -89,7 +89,7 @@ type ListWithOffsetPaginationHasNextPageRequest struct { type ListUsersOffsetStepPaginationRequest struct { // Defaults to first page Page *int `json:"-" url:"page,omitempty"` - // The maxiumum number of elements to return. + // The maximum number of elements to return. // This is also used as the step size in this // paginated endpoint. Limit *int `json:"-" url:"limit,omitempty"` diff --git a/seed/go-sdk/path-parameters/inline-path-parameters/internal/retrier.go b/seed/go-sdk/path-parameters/inline-path-parameters/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/path-parameters/inline-path-parameters/internal/retrier.go +++ b/seed/go-sdk/path-parameters/inline-path-parameters/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/path-parameters/inline-path-parameters/option/request_option.go b/seed/go-sdk/path-parameters/inline-path-parameters/option/request_option.go index 3ef60c27882..60cf704b995 100644 --- a/seed/go-sdk/path-parameters/inline-path-parameters/option/request_option.go +++ b/seed/go-sdk/path-parameters/inline-path-parameters/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/path-parameters/no-custom-config/internal/retrier.go b/seed/go-sdk/path-parameters/no-custom-config/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/path-parameters/no-custom-config/internal/retrier.go +++ b/seed/go-sdk/path-parameters/no-custom-config/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/path-parameters/no-custom-config/option/request_option.go b/seed/go-sdk/path-parameters/no-custom-config/option/request_option.go index e5661652492..1ae64d67c5d 100644 --- a/seed/go-sdk/path-parameters/no-custom-config/option/request_option.go +++ b/seed/go-sdk/path-parameters/no-custom-config/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/plain-text/internal/retrier.go b/seed/go-sdk/plain-text/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/plain-text/internal/retrier.go +++ b/seed/go-sdk/plain-text/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/plain-text/option/request_option.go b/seed/go-sdk/plain-text/option/request_option.go index 1f443375553..5611bed90ed 100644 --- a/seed/go-sdk/plain-text/option/request_option.go +++ b/seed/go-sdk/plain-text/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/query-parameters/internal/retrier.go b/seed/go-sdk/query-parameters/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/query-parameters/internal/retrier.go +++ b/seed/go-sdk/query-parameters/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/query-parameters/option/request_option.go b/seed/go-sdk/query-parameters/option/request_option.go index 6782e15c5a5..2def9525a31 100644 --- a/seed/go-sdk/query-parameters/option/request_option.go +++ b/seed/go-sdk/query-parameters/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/response-property/internal/retrier.go b/seed/go-sdk/response-property/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/response-property/internal/retrier.go +++ b/seed/go-sdk/response-property/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/response-property/option/request_option.go b/seed/go-sdk/response-property/option/request_option.go index 30784898a40..64ad97406e9 100644 --- a/seed/go-sdk/response-property/option/request_option.go +++ b/seed/go-sdk/response-property/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/server-sent-event-examples/internal/retrier.go b/seed/go-sdk/server-sent-event-examples/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/server-sent-event-examples/internal/retrier.go +++ b/seed/go-sdk/server-sent-event-examples/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/server-sent-event-examples/option/request_option.go b/seed/go-sdk/server-sent-event-examples/option/request_option.go index 4216f1eb7d3..a6025574ec2 100644 --- a/seed/go-sdk/server-sent-event-examples/option/request_option.go +++ b/seed/go-sdk/server-sent-event-examples/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/server-sent-events/internal/retrier.go b/seed/go-sdk/server-sent-events/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/server-sent-events/internal/retrier.go +++ b/seed/go-sdk/server-sent-events/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/server-sent-events/option/request_option.go b/seed/go-sdk/server-sent-events/option/request_option.go index 35fafda6e85..82cf826df59 100644 --- a/seed/go-sdk/server-sent-events/option/request_option.go +++ b/seed/go-sdk/server-sent-events/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/simple-fhir/internal/retrier.go b/seed/go-sdk/simple-fhir/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/simple-fhir/internal/retrier.go +++ b/seed/go-sdk/simple-fhir/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/simple-fhir/option/request_option.go b/seed/go-sdk/simple-fhir/option/request_option.go index 02f53a4bc48..8fd2b5ef464 100644 --- a/seed/go-sdk/simple-fhir/option/request_option.go +++ b/seed/go-sdk/simple-fhir/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/single-url-environment-default/internal/retrier.go b/seed/go-sdk/single-url-environment-default/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/single-url-environment-default/internal/retrier.go +++ b/seed/go-sdk/single-url-environment-default/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/single-url-environment-default/option/request_option.go b/seed/go-sdk/single-url-environment-default/option/request_option.go index 059e6e5faea..9a9585a241c 100644 --- a/seed/go-sdk/single-url-environment-default/option/request_option.go +++ b/seed/go-sdk/single-url-environment-default/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/single-url-environment-no-default/internal/retrier.go b/seed/go-sdk/single-url-environment-no-default/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/single-url-environment-no-default/internal/retrier.go +++ b/seed/go-sdk/single-url-environment-no-default/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/single-url-environment-no-default/option/request_option.go b/seed/go-sdk/single-url-environment-no-default/option/request_option.go index f8acf94635b..f4d32422caf 100644 --- a/seed/go-sdk/single-url-environment-no-default/option/request_option.go +++ b/seed/go-sdk/single-url-environment-no-default/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/streaming-parameter/core/retrier.go b/seed/go-sdk/streaming-parameter/core/retrier.go index ea24916b786..50a65b3b48b 100644 --- a/seed/go-sdk/streaming-parameter/core/retrier.go +++ b/seed/go-sdk/streaming-parameter/core/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -144,7 +144,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/streaming-parameter/option/request_option.go b/seed/go-sdk/streaming-parameter/option/request_option.go index 34c4e836296..21813847ed8 100644 --- a/seed/go-sdk/streaming-parameter/option/request_option.go +++ b/seed/go-sdk/streaming-parameter/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/streaming/internal/retrier.go b/seed/go-sdk/streaming/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/streaming/internal/retrier.go +++ b/seed/go-sdk/streaming/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/streaming/option/request_option.go b/seed/go-sdk/streaming/option/request_option.go index afabc4d3d65..3eaa4a94727 100644 --- a/seed/go-sdk/streaming/option/request_option.go +++ b/seed/go-sdk/streaming/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/undiscriminated-unions/internal/retrier.go b/seed/go-sdk/undiscriminated-unions/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/undiscriminated-unions/internal/retrier.go +++ b/seed/go-sdk/undiscriminated-unions/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/undiscriminated-unions/option/request_option.go b/seed/go-sdk/undiscriminated-unions/option/request_option.go index 689d6321dd2..178986dba89 100644 --- a/seed/go-sdk/undiscriminated-unions/option/request_option.go +++ b/seed/go-sdk/undiscriminated-unions/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/unions/.mock/definition/types.yml b/seed/go-sdk/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/go-sdk/unions/.mock/definition/types.yml +++ b/seed/go-sdk/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/go-sdk/unions/internal/retrier.go b/seed/go-sdk/unions/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/unions/internal/retrier.go +++ b/seed/go-sdk/unions/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/unions/option/request_option.go b/seed/go-sdk/unions/option/request_option.go index 73fa1a19d59..ddefede3620 100644 --- a/seed/go-sdk/unions/option/request_option.go +++ b/seed/go-sdk/unions/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/unions/types.go b/seed/go-sdk/unions/types.go index 58be1314e89..1a991d24416 100644 --- a/seed/go-sdk/unions/types.go +++ b/seed/go-sdk/unions/types.go @@ -673,7 +673,7 @@ func (u *UnionWithLiteral) validate() error { type UnionWithOptionalTime struct { Type string Date *time.Time - Dateimte *time.Time + Datetime *time.Time } func (u *UnionWithOptionalTime) GetType() string { @@ -690,11 +690,11 @@ func (u *UnionWithOptionalTime) GetDate() *time.Time { return u.Date } -func (u *UnionWithOptionalTime) GetDateimte() *time.Time { +func (u *UnionWithOptionalTime) GetDatetime() *time.Time { if u == nil { return nil } - return u.Dateimte + return u.Datetime } func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { @@ -717,14 +717,14 @@ func (u *UnionWithOptionalTime) UnmarshalJSON(data []byte) error { return err } u.Date = valueUnmarshaler.Date.TimePtr() - case "dateimte": + case "datetime": var valueUnmarshaler struct { - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` } if err := json.Unmarshal(data, &valueUnmarshaler); err != nil { return err } - u.Dateimte = valueUnmarshaler.Dateimte.TimePtr() + u.Datetime = valueUnmarshaler.Datetime.TimePtr() } return nil } @@ -743,13 +743,13 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { } return json.Marshal(marshaler) } - if u.Dateimte != nil { + if u.Datetime != nil { var marshaler = struct { Type string `json:"type"` - Dateimte *internal.DateTime `json:"value,omitempty"` + Datetime *internal.DateTime `json:"value,omitempty"` }{ - Type: "dateimte", - Dateimte: internal.NewOptionalDateTime(u.Dateimte), + Type: "datetime", + Datetime: internal.NewOptionalDateTime(u.Datetime), } return json.Marshal(marshaler) } @@ -758,15 +758,15 @@ func (u UnionWithOptionalTime) MarshalJSON() ([]byte, error) { type UnionWithOptionalTimeVisitor interface { VisitDate(*time.Time) error - VisitDateimte(*time.Time) error + VisitDatetime(*time.Time) error } func (u *UnionWithOptionalTime) Accept(visitor UnionWithOptionalTimeVisitor) error { if u.Date != nil { return visitor.VisitDate(u.Date) } - if u.Dateimte != nil { - return visitor.VisitDateimte(u.Dateimte) + if u.Datetime != nil { + return visitor.VisitDatetime(u.Datetime) } return fmt.Errorf("type %T does not define a non-empty union type", u) } @@ -779,8 +779,8 @@ func (u *UnionWithOptionalTime) validate() error { if u.Date != nil { fields = append(fields, "date") } - if u.Dateimte != nil { - fields = append(fields, "dateimte") + if u.Datetime != nil { + fields = append(fields, "datetime") } if len(fields) == 0 { if u.Type != "" { diff --git a/seed/go-sdk/unknown/internal/retrier.go b/seed/go-sdk/unknown/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/unknown/internal/retrier.go +++ b/seed/go-sdk/unknown/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/unknown/option/request_option.go b/seed/go-sdk/unknown/option/request_option.go index 8fc01e9246e..4e2a9894f27 100644 --- a/seed/go-sdk/unknown/option/request_option.go +++ b/seed/go-sdk/unknown/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/validation/internal/retrier.go b/seed/go-sdk/validation/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/validation/internal/retrier.go +++ b/seed/go-sdk/validation/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/validation/option/request_option.go b/seed/go-sdk/validation/option/request_option.go index 63d8dd94f2a..fe196229958 100644 --- a/seed/go-sdk/validation/option/request_option.go +++ b/seed/go-sdk/validation/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/variables/internal/retrier.go b/seed/go-sdk/variables/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/variables/internal/retrier.go +++ b/seed/go-sdk/variables/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/variables/option/request_option.go b/seed/go-sdk/variables/option/request_option.go index 3836da2848f..00f5c2ad6a5 100644 --- a/seed/go-sdk/variables/option/request_option.go +++ b/seed/go-sdk/variables/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/version-no-default/internal/retrier.go b/seed/go-sdk/version-no-default/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/version-no-default/internal/retrier.go +++ b/seed/go-sdk/version-no-default/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/version-no-default/option/request_option.go b/seed/go-sdk/version-no-default/option/request_option.go index 7ee67ab286e..00d12b17bbc 100644 --- a/seed/go-sdk/version-no-default/option/request_option.go +++ b/seed/go-sdk/version-no-default/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/version/internal/retrier.go b/seed/go-sdk/version/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/version/internal/retrier.go +++ b/seed/go-sdk/version/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/version/option/request_option.go b/seed/go-sdk/version/option/request_option.go index daaa7940118..40ac05f36ba 100644 --- a/seed/go-sdk/version/option/request_option.go +++ b/seed/go-sdk/version/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/go-sdk/websocket/internal/retrier.go b/seed/go-sdk/websocket/internal/retrier.go index 6040147154b..3418f009426 100644 --- a/seed/go-sdk/websocket/internal/retrier.go +++ b/seed/go-sdk/websocket/internal/retrier.go @@ -16,7 +16,7 @@ const ( // RetryOption adapts the behavior the *Retrier. type RetryOption func(*retryOptions) -// RetryFunc is a retriable HTTP function call (i.e. *http.Client.Do). +// RetryFunc is a retryable HTTP function call (i.e. *http.Client.Do). type RetryFunc func(*http.Request) (*http.Response, error) // WithMaxAttempts configures the maximum number of attempts @@ -50,7 +50,7 @@ func NewRetrier(opts ...RetryOption) *Retrier { // Run issues the request and, upon failure, retries the request if possible. // -// The request will be retried as long as the request is deemed retriable and the +// The request will be retried as long as the request is deemed retryable and the // number of retry attempts has not grown larger than the configured retry limit. func (r *Retrier) Run( fn RetryFunc, @@ -143,7 +143,7 @@ func (r *Retrier) retryDelay(retryAttempt uint) (time.Duration, error) { delay = maxRetryDelay } - // Apply some itter by randomizing the value in the range of 75%-100%. + // Apply some jitter by randomizing the value in the range of 75%-100%. max := big.NewInt(int64(delay / 4)) jitter, err := rand.Int(rand.Reader, max) if err != nil { diff --git a/seed/go-sdk/websocket/option/request_option.go b/seed/go-sdk/websocket/option/request_option.go index 0e8a1a3bc68..d46b1322ada 100644 --- a/seed/go-sdk/websocket/option/request_option.go +++ b/seed/go-sdk/websocket/option/request_option.go @@ -8,7 +8,7 @@ import ( url "net/url" ) -// RequestOption adapts the behavior of an indivdual request. +// RequestOption adapts the behavior of an individual request. type RequestOption = core.RequestOption // WithBaseURL sets the base URL, overriding the default diff --git a/seed/java-model/circular-references/src/main/java/com/seed/api/model/ast/JsonLike.java b/seed/java-model/circular-references/src/main/java/com/seed/api/model/ast/JsonLike.java index db7d916c5c4..331f7457b12 100644 --- a/seed/java-model/circular-references/src/main/java/com/seed/api/model/ast/JsonLike.java +++ b/seed/java-model/circular-references/src/main/java/com/seed/api/model/ast/JsonLike.java @@ -105,7 +105,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public JsonLike deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public JsonLike deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, new TypeReference>() {})); diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/Type.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/Type.java index 267b372d291..56769887157 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/Type.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/Type.java @@ -78,7 +78,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Type deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Type deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, BasicType.class)); diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/CastMember.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/CastMember.java index 258365779c8..c7b7e39f663 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/CastMember.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/CastMember.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public CastMember deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public CastMember deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, Actor.class)); diff --git a/seed/java-model/file-upload/.mock/definition/service.yml b/seed/java-model/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/java-model/file-upload/.mock/definition/service.yml +++ b/seed/java-model/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/java-model/file-upload/.mock/ir.json b/seed/java-model/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/java-model/file-upload/.mock/ir.json +++ b/seed/java-model/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Metadata.java b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Metadata.java index 9b22ed20c4c..d85f2434689 100644 --- a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Metadata.java +++ b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Metadata.java @@ -80,7 +80,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Metadata deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Metadata deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return ofMapOfStringToMetadataValue(ObjectMappers.JSON_MAPPER.convertValue( diff --git a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/MetadataValue.java b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/MetadataValue.java index 6d263c9a0b5..7023a479f02 100644 --- a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/MetadataValue.java +++ b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/MetadataValue.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MetadataValue deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MetadataValue deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); if (value instanceof Double) { return of((Double) value); diff --git a/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/Metadata.java b/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/Metadata.java index 9b22ed20c4c..d85f2434689 100644 --- a/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/Metadata.java +++ b/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/Metadata.java @@ -80,7 +80,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Metadata deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Metadata deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return ofMapOfStringToMetadataValue(ObjectMappers.JSON_MAPPER.convertValue( diff --git a/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/MetadataValue.java b/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/MetadataValue.java index 6d263c9a0b5..7023a479f02 100644 --- a/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/MetadataValue.java +++ b/seed/java-model/grpc-proto/src/main/java/com/seed/api/model/MetadataValue.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MetadataValue deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MetadataValue deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); if (value instanceof Double) { return of((Double) value); diff --git a/seed/java-model/inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java b/seed/java-model/inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java index 3d54937c888..ca1875a288f 100644 --- a/seed/java-model/inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java +++ b/seed/java-model/inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java @@ -146,7 +146,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, UndiscriminatedUnion1InlineType1.class)); diff --git a/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java b/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java index 501fb49ffaf..7a8cc8ea0ef 100644 --- a/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java +++ b/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnion1.java @@ -138,7 +138,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, UndiscriminatedUnion1InlineType1.class)); diff --git a/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnionTypeWithAliasListVariant.java b/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnionTypeWithAliasListVariant.java index 3e83face0e0..58661fee896 100644 --- a/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnionTypeWithAliasListVariant.java +++ b/seed/java-model/java-inline-types/src/main/java/com/seed/object/model/UndiscriminatedUnionTypeWithAliasListVariant.java @@ -73,7 +73,7 @@ static final class Deserializer extends StdDeserializer } @java.lang.Override - public UndiscriminatedLiteral deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public UndiscriminatedLiteral deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); diff --git a/seed/java-model/multi-line-docs/.mock/definition/user.yml b/seed/java-model/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/java-model/multi-line-docs/.mock/definition/user.yml +++ b/seed/java-model/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/java-model/pagination/.mock/definition/users.yml b/seed/java-model/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/java-model/pagination/.mock/definition/users.yml +++ b/seed/java-model/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/ResourceList.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/ResourceList.java index 290f8cb6c07..a8042d90c59 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/ResourceList.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/ResourceList.java @@ -94,7 +94,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public ResourceList deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public ResourceList deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, Account.class)); diff --git a/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/Key.java b/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/Key.java index eafe69aaac8..8a8e6ad2548 100644 --- a/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/Key.java +++ b/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/Key.java @@ -79,7 +79,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Key deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Key deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, KeyType.class)); diff --git a/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/MyUnion.java b/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/MyUnion.java index ab6b4611096..b5974f476db 100644 --- a/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/MyUnion.java +++ b/seed/java-model/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/model/union/MyUnion.java @@ -113,7 +113,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MyUnion deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MyUnion deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); diff --git a/seed/java-model/unions/.mock/definition/types.yml b/seed/java-model/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/java-model/unions/.mock/definition/types.yml +++ b/seed/java-model/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/java-model/unions/src/main/java/com/seed/unions/model/types/UnionWithOptionalTime.java b/seed/java-model/unions/src/main/java/com/seed/unions/model/types/UnionWithOptionalTime.java index 3384706cdff..bd7f6200817 100644 --- a/seed/java-model/unions/src/main/java/com/seed/unions/model/types/UnionWithOptionalTime.java +++ b/seed/java-model/unions/src/main/java/com/seed/unions/model/types/UnionWithOptionalTime.java @@ -30,16 +30,16 @@ public static UnionWithOptionalTime date(Optional value) { return new UnionWithOptionalTime(new DateValue(value)); } - public static UnionWithOptionalTime dateimte(Optional value) { - return new UnionWithOptionalTime(new DateimteValue(value)); + public static UnionWithOptionalTime datetime(Optional value) { + return new UnionWithOptionalTime(new DatetimeValue(value)); } public boolean isDate() { return value instanceof DateValue; } - public boolean isDateimte() { - return value instanceof DateimteValue; + public boolean isDatetime() { + return value instanceof DatetimeValue; } public boolean _isUnknown() { @@ -53,9 +53,9 @@ public Optional> getDate() { return Optional.empty(); } - public Optional> getDateimte() { - if (isDateimte()) { - return Optional.of(((DateimteValue) value).value); + public Optional> getDatetime() { + if (isDatetime()) { + return Optional.of(((DatetimeValue) value).value); } return Optional.empty(); } @@ -75,13 +75,13 @@ private Value getValue() { public interface Visitor { T visitDate(Optional date); - T visitDateimte(Optional dateimte); + T visitDatetime(Optional datetime); T _visitUnknown(Object unknownType); } @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true, defaultImpl = _UnknownValue.class) - @JsonSubTypes({@JsonSubTypes.Type(DateValue.class), @JsonSubTypes.Type(DateimteValue.class)}) + @JsonSubTypes({@JsonSubTypes.Type(DateValue.class), @JsonSubTypes.Type(DatetimeValue.class)}) @JsonIgnoreProperties(ignoreUnknown = true) private interface Value { T visit(Visitor visitor); @@ -123,28 +123,28 @@ public String toString() { } } - @JsonTypeName("dateimte") - private static final class DateimteValue implements Value { + @JsonTypeName("datetime") + private static final class DatetimeValue implements Value { @JsonProperty("value") private Optional value; @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) - private DateimteValue(@JsonProperty("value") Optional value) { + private DatetimeValue(@JsonProperty("value") Optional value) { this.value = value; } @java.lang.Override public T visit(Visitor visitor) { - return visitor.visitDateimte(value); + return visitor.visitDatetime(value); } @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof DateimteValue && equalTo((DateimteValue) other); + return other instanceof DatetimeValue && equalTo((DatetimeValue) other); } - private boolean equalTo(DateimteValue other) { + private boolean equalTo(DatetimeValue other) { return value.equals(other.value); } diff --git a/seed/java-sdk/alias/src/main/java/com/seed/alias/core/Stream.java b/seed/java-sdk/alias/src/main/java/com/seed/alias/core/Stream.java index 345a91e30ce..aaace75c66e 100644 --- a/seed/java-sdk/alias/src/main/java/com/seed/alias/core/Stream.java +++ b/seed/java-sdk/alias/src/main/java/com/seed/alias/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/any-auth/src/main/java/com/seed/anyAuth/core/Stream.java b/seed/java-sdk/any-auth/src/main/java/com/seed/anyAuth/core/Stream.java index 3d2b5c7e7f0..71fc4e49c16 100644 --- a/seed/java-sdk/any-auth/src/main/java/com/seed/anyAuth/core/Stream.java +++ b/seed/java-sdk/any-auth/src/main/java/com/seed/anyAuth/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/api-wide-base-path/src/main/java/com/seed/apiWideBasePath/core/Stream.java b/seed/java-sdk/api-wide-base-path/src/main/java/com/seed/apiWideBasePath/core/Stream.java index 49ac39c6f01..5202b6b2191 100644 --- a/seed/java-sdk/api-wide-base-path/src/main/java/com/seed/apiWideBasePath/core/Stream.java +++ b/seed/java-sdk/api-wide-base-path/src/main/java/com/seed/apiWideBasePath/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/audiences/src/main/java/com/seed/audiences/core/Stream.java b/seed/java-sdk/audiences/src/main/java/com/seed/audiences/core/Stream.java index 1e2d6e07475..50c7d150529 100644 --- a/seed/java-sdk/audiences/src/main/java/com/seed/audiences/core/Stream.java +++ b/seed/java-sdk/audiences/src/main/java/com/seed/audiences/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/auth-environment-variables/src/main/java/com/seed/authEnvironmentVariables/core/Stream.java b/seed/java-sdk/auth-environment-variables/src/main/java/com/seed/authEnvironmentVariables/core/Stream.java index be99306b739..e00ec717692 100644 --- a/seed/java-sdk/auth-environment-variables/src/main/java/com/seed/authEnvironmentVariables/core/Stream.java +++ b/seed/java-sdk/auth-environment-variables/src/main/java/com/seed/authEnvironmentVariables/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/core/Stream.java b/seed/java-sdk/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/core/Stream.java index 9c9d5d931ab..14f8500f839 100644 --- a/seed/java-sdk/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/core/Stream.java +++ b/seed/java-sdk/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/basic-auth/src/main/java/com/seed/basicAuth/core/Stream.java b/seed/java-sdk/basic-auth/src/main/java/com/seed/basicAuth/core/Stream.java index 33564de807c..f5a59ec8ce4 100644 --- a/seed/java-sdk/basic-auth/src/main/java/com/seed/basicAuth/core/Stream.java +++ b/seed/java-sdk/basic-auth/src/main/java/com/seed/basicAuth/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/bearer-token-environment-variable/src/main/java/com/seed/bearerTokenEnvironmentVariable/core/Stream.java b/seed/java-sdk/bearer-token-environment-variable/src/main/java/com/seed/bearerTokenEnvironmentVariable/core/Stream.java index 1ae2b1be668..92131d88511 100644 --- a/seed/java-sdk/bearer-token-environment-variable/src/main/java/com/seed/bearerTokenEnvironmentVariable/core/Stream.java +++ b/seed/java-sdk/bearer-token-environment-variable/src/main/java/com/seed/bearerTokenEnvironmentVariable/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/bytes/src/main/java/com/seed/bytes/core/Stream.java b/seed/java-sdk/bytes/src/main/java/com/seed/bytes/core/Stream.java index b88438c3494..050085f2642 100644 --- a/seed/java-sdk/bytes/src/main/java/com/seed/bytes/core/Stream.java +++ b/seed/java-sdk/bytes/src/main/java/com/seed/bytes/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/circular-references-advanced/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/circular-references-advanced/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/circular-references-advanced/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/circular-references-advanced/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/circular-references/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/circular-references/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/circular-references/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/circular-references/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/circular-references/src/main/java/com/seed/api/resources/ast/types/JsonLike.java b/seed/java-sdk/circular-references/src/main/java/com/seed/api/resources/ast/types/JsonLike.java index 666299165be..b91ce8d21ae 100644 --- a/seed/java-sdk/circular-references/src/main/java/com/seed/api/resources/ast/types/JsonLike.java +++ b/seed/java-sdk/circular-references/src/main/java/com/seed/api/resources/ast/types/JsonLike.java @@ -105,7 +105,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public JsonLike deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public JsonLike deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, new TypeReference>() {})); diff --git a/seed/java-sdk/code-samples/src/main/java/com/seed/codeSamples/core/Stream.java b/seed/java-sdk/code-samples/src/main/java/com/seed/codeSamples/core/Stream.java index 966a7638d43..f6723c56ed6 100644 --- a/seed/java-sdk/code-samples/src/main/java/com/seed/codeSamples/core/Stream.java +++ b/seed/java-sdk/code-samples/src/main/java/com/seed/codeSamples/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/core/Stream.java b/seed/java-sdk/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/core/Stream.java index ce852e28d8f..ebadac6ea20 100644 --- a/seed/java-sdk/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/core/Stream.java +++ b/seed/java-sdk/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/custom-auth/src/main/java/com/seed/customAuth/core/Stream.java b/seed/java-sdk/custom-auth/src/main/java/com/seed/customAuth/core/Stream.java index fd65d4b03e1..47194acfe57 100644 --- a/seed/java-sdk/custom-auth/src/main/java/com/seed/customAuth/core/Stream.java +++ b/seed/java-sdk/custom-auth/src/main/java/com/seed/customAuth/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/enum-query-params/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/enum-query-params/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/enum-query-params/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/enum-query-params/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/enum/src/main/java/com/seed/enum/core/Stream.java b/seed/java-sdk/enum/src/main/java/com/seed/enum/core/Stream.java index 49475845886..92369d1c6ec 100644 --- a/seed/java-sdk/enum/src/main/java/com/seed/enum/core/Stream.java +++ b/seed/java-sdk/enum/src/main/java/com/seed/enum/core/Stream.java @@ -10,7 +10,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -24,7 +24,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/error-property/src/main/java/com/seed/errorProperty/core/Stream.java b/seed/java-sdk/error-property/src/main/java/com/seed/errorProperty/core/Stream.java index 4d2b94ce449..36684dee907 100644 --- a/seed/java-sdk/error-property/src/main/java/com/seed/errorProperty/core/Stream.java +++ b/seed/java-sdk/error-property/src/main/java/com/seed/errorProperty/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/examples/src/main/java/com/seed/examples/core/Stream.java b/seed/java-sdk/examples/src/main/java/com/seed/examples/core/Stream.java index 5577546e8ea..8808096ed1a 100644 --- a/seed/java-sdk/examples/src/main/java/com/seed/examples/core/Stream.java +++ b/seed/java-sdk/examples/src/main/java/com/seed/examples/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/examples/src/main/java/com/seed/examples/resources/types/types/CastMember.java b/seed/java-sdk/examples/src/main/java/com/seed/examples/resources/types/types/CastMember.java index a18d5a1f76f..0c694f99669 100644 --- a/seed/java-sdk/examples/src/main/java/com/seed/examples/resources/types/types/CastMember.java +++ b/seed/java-sdk/examples/src/main/java/com/seed/examples/resources/types/types/CastMember.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public CastMember deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public CastMember deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, Actor.class)); diff --git a/seed/java-sdk/examples/src/main/java/com/seed/examples/types/Type.java b/seed/java-sdk/examples/src/main/java/com/seed/examples/types/Type.java index 871d5231e11..b16793b0ec0 100644 --- a/seed/java-sdk/examples/src/main/java/com/seed/examples/types/Type.java +++ b/seed/java-sdk/examples/src/main/java/com/seed/examples/types/Type.java @@ -78,7 +78,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Type deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Type deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, BasicType.class)); diff --git a/seed/java-sdk/exhaustive/custom-client-class-name/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/custom-client-class-name/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/custom-client-class-name/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/custom-client-class-name/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index cea093d2a9e..bfc31ca01f6 100644 --- a/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 7ef6483ef54..7e3dc2e88b7 100644 --- a/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/custom-client-class-name/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/custom-dependency/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/custom-dependency/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/custom-dependency/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/custom-dependency/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index 82ed8458396..2b8bd7ca0e0 100644 --- a/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 7ef6483ef54..7e3dc2e88b7 100644 --- a/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/custom-dependency/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/custom-error-names/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/custom-error-names/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/custom-error-names/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/custom-error-names/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index b744630abd5..9d40c12fe5a 100644 --- a/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 7ef6483ef54..7e3dc2e88b7 100644 --- a/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/custom-error-names/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/enable-public-constructors/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/enable-public-constructors/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/enable-public-constructors/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/enable-public-constructors/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index 82ed8458396..2b8bd7ca0e0 100644 --- a/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index ff7986b5fea..4a0ea10f6fe 100644 --- a/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/enable-public-constructors/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - public GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + public GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/forward-compatible-enums/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/forward-compatible-enums/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/forward-compatible-enums/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/forward-compatible-enums/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index 82ed8458396..2b8bd7ca0e0 100644 --- a/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 7ef6483ef54..7e3dc2e88b7 100644 --- a/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/forward-compatible-enums/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/json-include-non-empty/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/json-include-non-empty/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/json-include-non-empty/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/json-include-non-empty/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index 82ed8458396..2b8bd7ca0e0 100644 --- a/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 6026167b1f9..87ffafbd69a 100644 --- a/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/json-include-non-empty/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/local-files/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/local-files/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/local-files/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/local-files/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/local-files/core/Stream.java b/seed/java-sdk/exhaustive/local-files/core/Stream.java index 8d98c4ee31b..af00ea840f2 100644 --- a/seed/java-sdk/exhaustive/local-files/core/Stream.java +++ b/seed/java-sdk/exhaustive/local-files/core/Stream.java @@ -10,7 +10,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -24,7 +24,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/ParamsClient.java index b074dde85bf..e72f3b2fc21 100644 --- a/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/ParamsClient.java @@ -168,7 +168,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()).newBuilder() .addPathSegments("params") ;httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/requests/GetWithMultipleQuery.java index e4e084ce459..4b57f2bd6d8 100644 --- a/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/local-files/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -26,13 +26,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -41,9 +41,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -58,12 +58,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -82,7 +82,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -95,7 +95,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -106,7 +106,7 @@ private Builder() { @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -118,15 +118,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index fd8913079bf..57da62d088a 100644 --- a/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 7ef6483ef54..7e3dc2e88b7 100644 --- a/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/no-custom-config/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/exhaustive/signed_publish/.mock/definition/endpoints/params.yml b/seed/java-sdk/exhaustive/signed_publish/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-sdk/exhaustive/signed_publish/.mock/definition/endpoints/params.yml +++ b/seed/java-sdk/exhaustive/signed_publish/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/core/Stream.java b/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/core/Stream.java index baf60da9ba7..8224cd436b2 100644 --- a/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/core/Stream.java +++ b/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java b/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java index fd8913079bf..57da62d088a 100644 --- a/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java +++ b/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/ParamsClient.java @@ -173,7 +173,7 @@ public void getWithAllowMultipleQuery(GetWithMultipleQuery request, RequestOptio .newBuilder() .addPathSegments("params"); httpUrl.addQueryParameter("query", request.getQuery()); - httpUrl.addQueryParameter("numer", Integer.toString(request.getNumer())); + httpUrl.addQueryParameter("number", Integer.toString(request.getNumer())); Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java b/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java index 7ef6483ef54..7e3dc2e88b7 100644 --- a/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java +++ b/seed/java-sdk/exhaustive/signed_publish/src/main/java/com/seed/exhaustive/resources/endpoints/params/requests/GetWithMultipleQuery.java @@ -21,13 +21,13 @@ public final class GetWithMultipleQuery { private final String query; - private final int numer; + private final int number; private final Map additionalProperties; - private GetWithMultipleQuery(String query, int numer, Map additionalProperties) { + private GetWithMultipleQuery(String query, int number, Map additionalProperties) { this.query = query; - this.numer = numer; + this.number = number; this.additionalProperties = additionalProperties; } @@ -36,9 +36,9 @@ public String getQuery() { return query; } - @JsonProperty("numer") + @JsonProperty("number") public int getNumer() { - return numer; + return number; } @java.lang.Override @@ -53,12 +53,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(GetWithMultipleQuery other) { - return query.equals(other.query) && numer == other.numer; + return query.equals(other.query) && number == other.number; } @java.lang.Override public int hashCode() { - return Objects.hash(this.query, this.numer); + return Objects.hash(this.query, this.number); } @java.lang.Override @@ -77,7 +77,7 @@ public interface QueryStage { } public interface NumerStage { - _FinalStage numer(int numer); + _FinalStage number(int number); } public interface _FinalStage { @@ -88,7 +88,7 @@ public interface _FinalStage { public static final class Builder implements QueryStage, NumerStage, _FinalStage { private String query; - private int numer; + private int number; @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -98,7 +98,7 @@ private Builder() {} @java.lang.Override public Builder from(GetWithMultipleQuery other) { query(other.getQuery()); - numer(other.getNumer()); + number(other.getNumer()); return this; } @@ -110,15 +110,15 @@ public NumerStage query(@NotNull String query) { } @java.lang.Override - @JsonSetter("numer") - public _FinalStage numer(int numer) { - this.numer = numer; + @JsonSetter("number") + public _FinalStage number(int number) { + this.number = number; return this; } @java.lang.Override public GetWithMultipleQuery build() { - return new GetWithMultipleQuery(query, numer, additionalProperties); + return new GetWithMultipleQuery(query, number, additionalProperties); } } } diff --git a/seed/java-sdk/extends/src/main/java/com/seed/extends/core/Stream.java b/seed/java-sdk/extends/src/main/java/com/seed/extends/core/Stream.java index bf0152a1397..302dce3fd47 100644 --- a/seed/java-sdk/extends/src/main/java/com/seed/extends/core/Stream.java +++ b/seed/java-sdk/extends/src/main/java/com/seed/extends/core/Stream.java @@ -10,7 +10,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -24,7 +24,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/extra-properties/src/main/java/com/seed/extraProperties/core/Stream.java b/seed/java-sdk/extra-properties/src/main/java/com/seed/extraProperties/core/Stream.java index b1de0bbbcba..071a402d5dd 100644 --- a/seed/java-sdk/extra-properties/src/main/java/com/seed/extraProperties/core/Stream.java +++ b/seed/java-sdk/extra-properties/src/main/java/com/seed/extraProperties/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/file-download/src/main/java/com/seed/fileDownload/core/Stream.java b/seed/java-sdk/file-download/src/main/java/com/seed/fileDownload/core/Stream.java index 24073518605..1cc960f9f57 100644 --- a/seed/java-sdk/file-download/src/main/java/com/seed/fileDownload/core/Stream.java +++ b/seed/java-sdk/file-download/src/main/java/com/seed/fileDownload/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/file-upload/.mock/definition/service.yml b/seed/java-sdk/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/java-sdk/file-upload/.mock/definition/service.yml +++ b/seed/java-sdk/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/java-sdk/file-upload/.mock/ir.json b/seed/java-sdk/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/java-sdk/file-upload/.mock/ir.json +++ b/seed/java-sdk/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/core/Stream.java b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/core/Stream.java index 7b9b9691c06..b03f13234b4 100644 --- a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/core/Stream.java +++ b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/ServiceClient.java b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/ServiceClient.java index 9434bc96fb8..8cc1303cecb 100644 --- a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/ServiceClient.java +++ b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/ServiceClient.java @@ -8,8 +8,8 @@ import com.seed.fileUpload.core.RequestOptions; import com.seed.fileUpload.core.SeedFileUploadApiException; import com.seed.fileUpload.core.SeedFileUploadException; -import com.seed.fileUpload.resources.service.requests.JustFileRequet; -import com.seed.fileUpload.resources.service.requests.JustFileWithQueryParamsRequet; +import com.seed.fileUpload.resources.service.requests.JustFileRequest; +import com.seed.fileUpload.resources.service.requests.JustFileWithQueryParamsRequest; import com.seed.fileUpload.resources.service.requests.MyRequest; import com.seed.fileUpload.resources.service.requests.WithContentTypeRequest; import java.io.File; @@ -134,11 +134,11 @@ public void post( } } - public void justFile(File file, JustFileRequet request) { + public void justFile(File file, JustFileRequest request) { justFile(file, request, null); } - public void justFile(File file, JustFileRequet request, RequestOptions requestOptions) { + public void justFile(File file, JustFileRequest request, RequestOptions requestOptions) { HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("just-file") @@ -175,12 +175,12 @@ public void justFile(File file, JustFileRequet request, RequestOptions requestOp } } - public void justFileWithQueryParams(File file, JustFileWithQueryParamsRequet request) { + public void justFileWithQueryParams(File file, JustFileWithQueryParamsRequest request) { justFileWithQueryParams(file, request, null); } public void justFileWithQueryParams( - File file, JustFileWithQueryParamsRequet request, RequestOptions requestOptions) { + File file, JustFileWithQueryParamsRequest request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("just-file-with-query-params"); diff --git a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileRequet.java b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileRequet.java index 3ab15735ec1..233c6af412c 100644 --- a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileRequet.java +++ b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileRequet.java @@ -13,18 +13,18 @@ import java.util.Map; @JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = JustFileRequet.Builder.class) -public final class JustFileRequet { +@JsonDeserialize(builder = JustFileRequest.Builder.class) +public final class JustFileRequest { private final Map additionalProperties; - private JustFileRequet(Map additionalProperties) { + private JustFileRequest(Map additionalProperties) { this.additionalProperties = additionalProperties; } @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof JustFileRequet; + return other instanceof JustFileRequest; } @JsonAnyGetter @@ -48,12 +48,12 @@ public static final class Builder { private Builder() {} - public Builder from(JustFileRequet other) { + public Builder from(JustFileRequest other) { return this; } - public JustFileRequet build() { - return new JustFileRequet(additionalProperties); + public JustFileRequest build() { + return new JustFileRequest(additionalProperties); } } } diff --git a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileWithQueryParamsRequet.java b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileWithQueryParamsRequet.java index 2f559bed5d1..173e10cb74e 100644 --- a/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileWithQueryParamsRequet.java +++ b/seed/java-sdk/file-upload/src/main/java/com/seed/fileUpload/resources/service/requests/JustFileWithQueryParamsRequet.java @@ -19,8 +19,8 @@ import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = JustFileWithQueryParamsRequet.Builder.class) -public final class JustFileWithQueryParamsRequet { +@JsonDeserialize(builder = JustFileWithQueryParamsRequest.Builder.class) +public final class JustFileWithQueryParamsRequest { private final Optional maybeString; private final int integer; @@ -33,7 +33,7 @@ public final class JustFileWithQueryParamsRequet { private final Map additionalProperties; - private JustFileWithQueryParamsRequet( + private JustFileWithQueryParamsRequest( Optional maybeString, int integer, Optional maybeInteger, @@ -76,7 +76,7 @@ public Optional getOptionalListOfStrings() { @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof JustFileWithQueryParamsRequet && equalTo((JustFileWithQueryParamsRequet) other); + return other instanceof JustFileWithQueryParamsRequest && equalTo((JustFileWithQueryParamsRequest) other); } @JsonAnyGetter @@ -84,7 +84,7 @@ public Map getAdditionalProperties() { return this.additionalProperties; } - private boolean equalTo(JustFileWithQueryParamsRequet other) { + private boolean equalTo(JustFileWithQueryParamsRequest other) { return maybeString.equals(other.maybeString) && integer == other.integer && maybeInteger.equals(other.maybeInteger) @@ -110,7 +110,7 @@ public static IntegerStage builder() { public interface IntegerStage { ListOfStringsStage integer(int integer); - Builder from(JustFileWithQueryParamsRequet other); + Builder from(JustFileWithQueryParamsRequest other); } public interface ListOfStringsStage { @@ -118,7 +118,7 @@ public interface ListOfStringsStage { } public interface _FinalStage { - JustFileWithQueryParamsRequet build(); + JustFileWithQueryParamsRequest build(); _FinalStage maybeString(Optional maybeString); @@ -151,7 +151,7 @@ public static final class Builder implements IntegerStage, ListOfStringsStage, _ private Builder() {} @java.lang.Override - public Builder from(JustFileWithQueryParamsRequet other) { + public Builder from(JustFileWithQueryParamsRequest other) { maybeString(other.getMaybeString()); integer(other.getInteger()); maybeInteger(other.getMaybeInteger()); @@ -214,8 +214,8 @@ public _FinalStage maybeString(Optional maybeString) { } @java.lang.Override - public JustFileWithQueryParamsRequet build() { - return new JustFileWithQueryParamsRequet( + public JustFileWithQueryParamsRequest build() { + return new JustFileWithQueryParamsRequest( maybeString, integer, maybeInteger, listOfStrings, optionalListOfStrings, additionalProperties); } } diff --git a/seed/java-sdk/folders/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/folders/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/folders/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/folders/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/Metadata.java b/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/Metadata.java index 0db6dca5a36..ddb32ff2fce 100644 --- a/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/Metadata.java +++ b/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/Metadata.java @@ -80,7 +80,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Metadata deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Metadata deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return ofMapOfStringToMetadataValue(ObjectMappers.JSON_MAPPER.convertValue( diff --git a/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/MetadataValue.java b/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/MetadataValue.java index 2f2c05ae0bf..08865d939b4 100644 --- a/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/MetadataValue.java +++ b/seed/java-sdk/grpc-proto-exhaustive/src/main/java/com/seed/api/types/MetadataValue.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MetadataValue deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MetadataValue deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); if (value instanceof Double) { return of((Double) value); diff --git a/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/Metadata.java b/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/Metadata.java index 0db6dca5a36..ddb32ff2fce 100644 --- a/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/Metadata.java +++ b/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/Metadata.java @@ -80,7 +80,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Metadata deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Metadata deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return ofMapOfStringToMetadataValue(ObjectMappers.JSON_MAPPER.convertValue( diff --git a/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/MetadataValue.java b/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/MetadataValue.java index 2f2c05ae0bf..08865d939b4 100644 --- a/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/MetadataValue.java +++ b/seed/java-sdk/grpc-proto/src/main/java/com/seed/api/types/MetadataValue.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MetadataValue deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MetadataValue deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); if (value instanceof Double) { return of((Double) value); diff --git a/seed/java-sdk/idempotency-headers/src/main/java/com/seed/idempotencyHeaders/core/Stream.java b/seed/java-sdk/idempotency-headers/src/main/java/com/seed/idempotencyHeaders/core/Stream.java index 864a4bee68b..c17194bc3ef 100644 --- a/seed/java-sdk/idempotency-headers/src/main/java/com/seed/idempotencyHeaders/core/Stream.java +++ b/seed/java-sdk/idempotency-headers/src/main/java/com/seed/idempotencyHeaders/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/imdb/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/imdb/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/imdb/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/imdb/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/inline-path-parameters/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/inline-path-parameters/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/inline-path-parameters/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/inline-path-parameters/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/inline-types/src/main/java/com/seed/object/core/Stream.java b/seed/java-sdk/inline-types/src/main/java/com/seed/object/core/Stream.java index ecc1492c728..099f8d55f73 100644 --- a/seed/java-sdk/inline-types/src/main/java/com/seed/object/core/Stream.java +++ b/seed/java-sdk/inline-types/src/main/java/com/seed/object/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/inline-types/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java b/seed/java-sdk/inline-types/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java index cd4b7e93825..2a9c1530e3a 100644 --- a/seed/java-sdk/inline-types/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java +++ b/seed/java-sdk/inline-types/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java @@ -146,7 +146,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, UndiscriminatedUnion1InlineType1.class)); diff --git a/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/core/Stream.java b/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/core/Stream.java index ecc1492c728..099f8d55f73 100644 --- a/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/core/Stream.java +++ b/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java b/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java index e4f86da27a9..ba9d3733324 100644 --- a/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java +++ b/seed/java-sdk/java-containers-with-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java @@ -82,7 +82,7 @@ static final class Deserializer extends StdDeserializer * {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/java-inline-path-parameters/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/java-inline-path-parameters/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/java-inline-path-parameters/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/java-inline-path-parameters/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/core/Stream.java b/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/core/Stream.java index ecc1492c728..099f8d55f73 100644 --- a/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/core/Stream.java +++ b/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java b/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java index 69bc7d0af4d..9d3f3f716d5 100644 --- a/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java +++ b/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java @@ -260,7 +260,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Bar deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Bar deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, InlineType1.class)); diff --git a/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java b/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java index 6bb8e3d271e..f644497710b 100644 --- a/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java +++ b/seed/java-sdk/java-inline-types/inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java @@ -73,7 +73,7 @@ static final class Deserializer extends StdDeserializer * {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java b/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java index 9e6fb09fd40..80a0bfe322f 100644 --- a/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java +++ b/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnion1.java @@ -138,7 +138,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, UndiscriminatedUnion1InlineType1.class)); diff --git a/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java b/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java index 6bb8e3d271e..f644497710b 100644 --- a/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java +++ b/seed/java-sdk/java-inline-types/no-inline/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java @@ -73,7 +73,7 @@ static final class Deserializer extends StdDeserializer * {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java b/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java index 00f057a749a..b648798ee2e 100644 --- a/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java +++ b/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/requests/GetUndiscriminatedUnionRequest.java @@ -259,7 +259,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Bar deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Bar deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, InlineType1.class)); diff --git a/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java b/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java index e4f86da27a9..ba9d3733324 100644 --- a/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java +++ b/seed/java-sdk/java-inline-types/no-wrapped-aliases/src/main/java/com/seed/object/types/UndiscriminatedUnionTypeWithAliasListVariant.java @@ -82,7 +82,7 @@ static final class Deserializer extends StdDeserializer * {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/license/src/main/java/com/seed/license/core/Stream.java b/seed/java-sdk/license/src/main/java/com/seed/license/core/Stream.java index 0b49285d559..78f0bff5db7 100644 --- a/seed/java-sdk/license/src/main/java/com/seed/license/core/Stream.java +++ b/seed/java-sdk/license/src/main/java/com/seed/license/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/literal/src/main/java/com/seed/literal/core/Stream.java b/seed/java-sdk/literal/src/main/java/com/seed/literal/core/Stream.java index ca84d418a19..95c9d274e11 100644 --- a/seed/java-sdk/literal/src/main/java/com/seed/literal/core/Stream.java +++ b/seed/java-sdk/literal/src/main/java/com/seed/literal/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/literal/src/main/java/com/seed/literal/resources/inlined/types/UndiscriminatedLiteral.java b/seed/java-sdk/literal/src/main/java/com/seed/literal/resources/inlined/types/UndiscriminatedLiteral.java index f4a237246d3..ac69b40f862 100644 --- a/seed/java-sdk/literal/src/main/java/com/seed/literal/resources/inlined/types/UndiscriminatedLiteral.java +++ b/seed/java-sdk/literal/src/main/java/com/seed/literal/resources/inlined/types/UndiscriminatedLiteral.java @@ -79,7 +79,7 @@ static final class Deserializer extends StdDeserializer } @java.lang.Override - public UndiscriminatedLiteral deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public UndiscriminatedLiteral deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); diff --git a/seed/java-sdk/mixed-case/src/main/java/com/seed/mixedCase/core/Stream.java b/seed/java-sdk/mixed-case/src/main/java/com/seed/mixedCase/core/Stream.java index 90b233bb330..631bd50f0ec 100644 --- a/seed/java-sdk/mixed-case/src/main/java/com/seed/mixedCase/core/Stream.java +++ b/seed/java-sdk/mixed-case/src/main/java/com/seed/mixedCase/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/mixed-file-directory/src/main/java/com/seed/mixedFileDirectory/core/Stream.java b/seed/java-sdk/mixed-file-directory/src/main/java/com/seed/mixedFileDirectory/core/Stream.java index c8186b96d1d..92177fb4dd9 100644 --- a/seed/java-sdk/mixed-file-directory/src/main/java/com/seed/mixedFileDirectory/core/Stream.java +++ b/seed/java-sdk/mixed-file-directory/src/main/java/com/seed/mixedFileDirectory/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/multi-line-docs/.mock/definition/user.yml b/seed/java-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/java-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/java-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/core/Stream.java b/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/core/Stream.java index ed9661c255a..bba8a33f822 100644 --- a/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/core/Stream.java +++ b/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/resources/user/requests/CreateUserRequest.java b/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/resources/user/requests/CreateUserRequest.java index 447cfc70ae7..fd607369477 100644 --- a/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/resources/user/requests/CreateUserRequest.java +++ b/seed/java-sdk/multi-line-docs/src/main/java/com/seed/multiLineDocs/resources/user/requests/CreateUserRequest.java @@ -44,7 +44,7 @@ public String getName() { /** * @return The age of the user. - * This propery is not required. + * This property is not required. */ @JsonProperty("age") public Optional getAge() { @@ -126,7 +126,7 @@ public _FinalStage name(@NotNull String name) { /** *

The age of the user. - * This propery is not required.

+ * This property is not required.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/seed/java-sdk/multi-url-environment-no-default/src/main/java/com/seed/multiUrlEnvironmentNoDefault/core/Stream.java b/seed/java-sdk/multi-url-environment-no-default/src/main/java/com/seed/multiUrlEnvironmentNoDefault/core/Stream.java index 917f72b91d6..52542a2446b 100644 --- a/seed/java-sdk/multi-url-environment-no-default/src/main/java/com/seed/multiUrlEnvironmentNoDefault/core/Stream.java +++ b/seed/java-sdk/multi-url-environment-no-default/src/main/java/com/seed/multiUrlEnvironmentNoDefault/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/multi-url-environment/src/main/java/com/seed/multiUrlEnvironment/core/Stream.java b/seed/java-sdk/multi-url-environment/src/main/java/com/seed/multiUrlEnvironment/core/Stream.java index 683fd62bee2..78d96bc11d6 100644 --- a/seed/java-sdk/multi-url-environment/src/main/java/com/seed/multiUrlEnvironment/core/Stream.java +++ b/seed/java-sdk/multi-url-environment/src/main/java/com/seed/multiUrlEnvironment/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/no-environment/src/main/java/com/seed/noEnvironment/core/Stream.java b/seed/java-sdk/no-environment/src/main/java/com/seed/noEnvironment/core/Stream.java index 8ae5a37aaf0..32f3a5b4b30 100644 --- a/seed/java-sdk/no-environment/src/main/java/com/seed/noEnvironment/core/Stream.java +++ b/seed/java-sdk/no-environment/src/main/java/com/seed/noEnvironment/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/nullable/src/main/java/com/seed/nullable/core/Stream.java b/seed/java-sdk/nullable/src/main/java/com/seed/nullable/core/Stream.java index 22e1887a0d1..20d9a55754f 100644 --- a/seed/java-sdk/nullable/src/main/java/com/seed/nullable/core/Stream.java +++ b/seed/java-sdk/nullable/src/main/java/com/seed/nullable/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/oauth-client-credentials-custom/src/main/java/com/seed/oauthClientCredentials/core/Stream.java b/seed/java-sdk/oauth-client-credentials-custom/src/main/java/com/seed/oauthClientCredentials/core/Stream.java index 6319a85da02..2f3246c85f3 100644 --- a/seed/java-sdk/oauth-client-credentials-custom/src/main/java/com/seed/oauthClientCredentials/core/Stream.java +++ b/seed/java-sdk/oauth-client-credentials-custom/src/main/java/com/seed/oauthClientCredentials/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/core/Stream.java b/seed/java-sdk/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/core/Stream.java index c0ca3207346..028cd9df5f2 100644 --- a/seed/java-sdk/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/core/Stream.java +++ b/seed/java-sdk/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/core/Stream.java b/seed/java-sdk/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/core/Stream.java index bf1ab8413a3..e19f94cd4b9 100644 --- a/seed/java-sdk/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/core/Stream.java +++ b/seed/java-sdk/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/core/Stream.java b/seed/java-sdk/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/core/Stream.java index 6319a85da02..2f3246c85f3 100644 --- a/seed/java-sdk/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/core/Stream.java +++ b/seed/java-sdk/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/core/Stream.java b/seed/java-sdk/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/core/Stream.java index 6319a85da02..2f3246c85f3 100644 --- a/seed/java-sdk/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/core/Stream.java +++ b/seed/java-sdk/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/object/src/main/java/com/seed/object/core/Stream.java b/seed/java-sdk/object/src/main/java/com/seed/object/core/Stream.java index ecc1492c728..099f8d55f73 100644 --- a/seed/java-sdk/object/src/main/java/com/seed/object/core/Stream.java +++ b/seed/java-sdk/object/src/main/java/com/seed/object/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/objects-with-imports/src/main/java/com/seed/objectsWithImports/core/Stream.java b/seed/java-sdk/objects-with-imports/src/main/java/com/seed/objectsWithImports/core/Stream.java index dfa79a9a087..29553b85e61 100644 --- a/seed/java-sdk/objects-with-imports/src/main/java/com/seed/objectsWithImports/core/Stream.java +++ b/seed/java-sdk/objects-with-imports/src/main/java/com/seed/objectsWithImports/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/optional/src/main/java/com/seed/objectsWithImports/core/Stream.java b/seed/java-sdk/optional/src/main/java/com/seed/objectsWithImports/core/Stream.java index dfa79a9a087..29553b85e61 100644 --- a/seed/java-sdk/optional/src/main/java/com/seed/objectsWithImports/core/Stream.java +++ b/seed/java-sdk/optional/src/main/java/com/seed/objectsWithImports/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/package-yml/src/main/java/com/seed/packageYml/core/Stream.java b/seed/java-sdk/package-yml/src/main/java/com/seed/packageYml/core/Stream.java index 6abeb0a51c7..e3f812b0d7f 100644 --- a/seed/java-sdk/package-yml/src/main/java/com/seed/packageYml/core/Stream.java +++ b/seed/java-sdk/package-yml/src/main/java/com/seed/packageYml/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/pagination/.mock/definition/users.yml b/seed/java-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/java-sdk/pagination/.mock/definition/users.yml +++ b/seed/java-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/java-sdk/pagination/src/main/java/com/seed/pagination/core/Stream.java b/seed/java-sdk/pagination/src/main/java/com/seed/pagination/core/Stream.java index 6f3d2ef3470..8e80ddbfae0 100644 --- a/seed/java-sdk/pagination/src/main/java/com/seed/pagination/core/Stream.java +++ b/seed/java-sdk/pagination/src/main/java/com/seed/pagination/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListUsersOffsetStepPaginationRequest.java b/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListUsersOffsetStepPaginationRequest.java index 6352451fa4c..02d2aab9467 100644 --- a/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListUsersOffsetStepPaginationRequest.java +++ b/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListUsersOffsetStepPaginationRequest.java @@ -49,7 +49,7 @@ public Optional getPage() { } /** - * @return The maxiumum number of elements to return. + * @return The maximum number of elements to return. * This is also used as the step size in this * paginated endpoint. */ diff --git a/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListWithOffsetPaginationHasNextPageRequest.java b/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListWithOffsetPaginationHasNextPageRequest.java index e0c2ad58c20..cc0984aad2e 100644 --- a/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListWithOffsetPaginationHasNextPageRequest.java +++ b/seed/java-sdk/pagination/src/main/java/com/seed/pagination/resources/users/requests/ListWithOffsetPaginationHasNextPageRequest.java @@ -49,7 +49,7 @@ public Optional getPage() { } /** - * @return The maxiumum number of elements to return. + * @return The maximum number of elements to return. * This is also used as the step size in this * paginated endpoint. */ diff --git a/seed/java-sdk/path-parameters/src/main/java/com/seed/pathParameters/core/Stream.java b/seed/java-sdk/path-parameters/src/main/java/com/seed/pathParameters/core/Stream.java index 6b211f09a2e..420fbbe5647 100644 --- a/seed/java-sdk/path-parameters/src/main/java/com/seed/pathParameters/core/Stream.java +++ b/seed/java-sdk/path-parameters/src/main/java/com/seed/pathParameters/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/plain-text/src/main/java/com/seed/plainText/core/Stream.java b/seed/java-sdk/plain-text/src/main/java/com/seed/plainText/core/Stream.java index 55cac2c0423..37303c564ce 100644 --- a/seed/java-sdk/plain-text/src/main/java/com/seed/plainText/core/Stream.java +++ b/seed/java-sdk/plain-text/src/main/java/com/seed/plainText/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/query-parameters/src/main/java/com/seed/queryParameters/core/Stream.java b/seed/java-sdk/query-parameters/src/main/java/com/seed/queryParameters/core/Stream.java index 853b4e43175..e425df5ae44 100644 --- a/seed/java-sdk/query-parameters/src/main/java/com/seed/queryParameters/core/Stream.java +++ b/seed/java-sdk/query-parameters/src/main/java/com/seed/queryParameters/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/reserved-keywords/src/main/java/com/seed/nurseryApi/core/Stream.java b/seed/java-sdk/reserved-keywords/src/main/java/com/seed/nurseryApi/core/Stream.java index eca341595d1..5aac9fba471 100644 --- a/seed/java-sdk/reserved-keywords/src/main/java/com/seed/nurseryApi/core/Stream.java +++ b/seed/java-sdk/reserved-keywords/src/main/java/com/seed/nurseryApi/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/response-property/src/main/java/com/seed/responseProperty/core/Stream.java b/seed/java-sdk/response-property/src/main/java/com/seed/responseProperty/core/Stream.java index 3b922cf294a..46fcfee155b 100644 --- a/seed/java-sdk/response-property/src/main/java/com/seed/responseProperty/core/Stream.java +++ b/seed/java-sdk/response-property/src/main/java/com/seed/responseProperty/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/server-sent-event-examples/src/main/java/com/seed/serverSentEvents/core/Stream.java b/seed/java-sdk/server-sent-event-examples/src/main/java/com/seed/serverSentEvents/core/Stream.java index b6bdbbfd5b2..8bee20e9bfa 100644 --- a/seed/java-sdk/server-sent-event-examples/src/main/java/com/seed/serverSentEvents/core/Stream.java +++ b/seed/java-sdk/server-sent-event-examples/src/main/java/com/seed/serverSentEvents/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/server-sent-events/src/main/java/com/seed/serverSentEvents/core/Stream.java b/seed/java-sdk/server-sent-events/src/main/java/com/seed/serverSentEvents/core/Stream.java index b6bdbbfd5b2..8bee20e9bfa 100644 --- a/seed/java-sdk/server-sent-events/src/main/java/com/seed/serverSentEvents/core/Stream.java +++ b/seed/java-sdk/server-sent-events/src/main/java/com/seed/serverSentEvents/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/core/Stream.java b/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/core/Stream.java index 96bf492958e..3cb244a7f7d 100644 --- a/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/core/Stream.java +++ b/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/types/ResourceList.java b/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/types/ResourceList.java index c1c6a399c34..ed5c1467efd 100644 --- a/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/types/ResourceList.java +++ b/seed/java-sdk/simple-fhir/src/main/java/com/seed/api/types/ResourceList.java @@ -94,7 +94,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public ResourceList deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public ResourceList deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, Account.class)); diff --git a/seed/java-sdk/single-url-environment-default/src/main/java/com/seed/singleUrlEnvironmentDefault/core/Stream.java b/seed/java-sdk/single-url-environment-default/src/main/java/com/seed/singleUrlEnvironmentDefault/core/Stream.java index 85708873cf7..377e9df4351 100644 --- a/seed/java-sdk/single-url-environment-default/src/main/java/com/seed/singleUrlEnvironmentDefault/core/Stream.java +++ b/seed/java-sdk/single-url-environment-default/src/main/java/com/seed/singleUrlEnvironmentDefault/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/single-url-environment-no-default/src/main/java/com/seed/singleUrlEnvironmentNoDefault/core/Stream.java b/seed/java-sdk/single-url-environment-no-default/src/main/java/com/seed/singleUrlEnvironmentNoDefault/core/Stream.java index ccac8ef96b5..cec4ab2cbe8 100644 --- a/seed/java-sdk/single-url-environment-no-default/src/main/java/com/seed/singleUrlEnvironmentNoDefault/core/Stream.java +++ b/seed/java-sdk/single-url-environment-no-default/src/main/java/com/seed/singleUrlEnvironmentNoDefault/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/streaming-parameter/src/main/java/com/seed/streaming/core/Stream.java b/seed/java-sdk/streaming-parameter/src/main/java/com/seed/streaming/core/Stream.java index bd8328ccfdd..82adb271410 100644 --- a/seed/java-sdk/streaming-parameter/src/main/java/com/seed/streaming/core/Stream.java +++ b/seed/java-sdk/streaming-parameter/src/main/java/com/seed/streaming/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/streaming/src/main/java/com/seed/streaming/core/Stream.java b/seed/java-sdk/streaming/src/main/java/com/seed/streaming/core/Stream.java index bd8328ccfdd..82adb271410 100644 --- a/seed/java-sdk/streaming/src/main/java/com/seed/streaming/core/Stream.java +++ b/seed/java-sdk/streaming/src/main/java/com/seed/streaming/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/trace/.mock/definition/submission.yml b/seed/java-sdk/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/java-sdk/trace/.mock/definition/submission.yml +++ b/seed/java-sdk/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/java-sdk/trace/src/main/java/com/seed/trace/core/Stream.java b/seed/java-sdk/trace/src/main/java/com/seed/trace/core/Stream.java index 7f75e1c0d6a..3f4af4c4f86 100644 --- a/seed/java-sdk/trace/src/main/java/com/seed/trace/core/Stream.java +++ b/seed/java-sdk/trace/src/main/java/com/seed/trace/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPage.java b/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPage.java index 6924a679ae9..98cf54df88d 100644 --- a/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPage.java +++ b/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPage.java @@ -36,7 +36,7 @@ private TraceResponsesPage( } /** - * @return If present, use this to load subseqent pages. + * @return If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ @JsonProperty("offset") diff --git a/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPageV2.java b/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPageV2.java index 253b8aed6b2..2f13451c1be 100644 --- a/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPageV2.java +++ b/seed/java-sdk/trace/src/main/java/com/seed/trace/resources/submission/types/TraceResponsesPageV2.java @@ -36,7 +36,7 @@ private TraceResponsesPageV2( } /** - * @return If present, use this to load subseqent pages. + * @return If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ @JsonProperty("offset") diff --git a/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/core/Stream.java b/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/core/Stream.java index 939cfe02eb0..9aacd4bfeaa 100644 --- a/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/core/Stream.java +++ b/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/Key.java b/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/Key.java index 588c13612ed..755cea8d5f4 100644 --- a/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/Key.java +++ b/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/Key.java @@ -79,7 +79,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Key deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Key deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, KeyType.class)); diff --git a/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/MyUnion.java b/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/MyUnion.java index 53088d31cdf..a4a64fe0468 100644 --- a/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/MyUnion.java +++ b/seed/java-sdk/undiscriminated-unions/src/main/java/com/seed/undiscriminatedUnions/resources/union/types/MyUnion.java @@ -113,7 +113,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MyUnion deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MyUnion deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); diff --git a/seed/java-sdk/unions/.mock/definition/types.yml b/seed/java-sdk/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/java-sdk/unions/.mock/definition/types.yml +++ b/seed/java-sdk/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/java-sdk/unions/src/main/java/com/seed/unions/core/Stream.java b/seed/java-sdk/unions/src/main/java/com/seed/unions/core/Stream.java index 9a7c869d96b..05b880b0096 100644 --- a/seed/java-sdk/unions/src/main/java/com/seed/unions/core/Stream.java +++ b/seed/java-sdk/unions/src/main/java/com/seed/unions/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/unions/src/main/java/com/seed/unions/resources/types/types/UnionWithOptionalTime.java b/seed/java-sdk/unions/src/main/java/com/seed/unions/resources/types/types/UnionWithOptionalTime.java index f6dfb3e5fb5..685fdf6aa50 100644 --- a/seed/java-sdk/unions/src/main/java/com/seed/unions/resources/types/types/UnionWithOptionalTime.java +++ b/seed/java-sdk/unions/src/main/java/com/seed/unions/resources/types/types/UnionWithOptionalTime.java @@ -30,16 +30,16 @@ public static UnionWithOptionalTime date(Optional value) { return new UnionWithOptionalTime(new DateValue(value)); } - public static UnionWithOptionalTime dateimte(Optional value) { - return new UnionWithOptionalTime(new DateimteValue(value)); + public static UnionWithOptionalTime datetime(Optional value) { + return new UnionWithOptionalTime(new DatetimeValue(value)); } public boolean isDate() { return value instanceof DateValue; } - public boolean isDateimte() { - return value instanceof DateimteValue; + public boolean isDatetime() { + return value instanceof DatetimeValue; } public boolean _isUnknown() { @@ -53,9 +53,9 @@ public Optional> getDate() { return Optional.empty(); } - public Optional> getDateimte() { - if (isDateimte()) { - return Optional.of(((DateimteValue) value).value); + public Optional> getDatetime() { + if (isDatetime()) { + return Optional.of(((DatetimeValue) value).value); } return Optional.empty(); } @@ -75,13 +75,13 @@ private Value getValue() { public interface Visitor { T visitDate(Optional date); - T visitDateimte(Optional dateimte); + T visitDatetime(Optional datetime); T _visitUnknown(Object unknownType); } @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true, defaultImpl = _UnknownValue.class) - @JsonSubTypes({@JsonSubTypes.Type(DateValue.class), @JsonSubTypes.Type(DateimteValue.class)}) + @JsonSubTypes({@JsonSubTypes.Type(DateValue.class), @JsonSubTypes.Type(DatetimeValue.class)}) @JsonIgnoreProperties(ignoreUnknown = true) private interface Value { T visit(Visitor visitor); @@ -123,28 +123,28 @@ public String toString() { } } - @JsonTypeName("dateimte") - private static final class DateimteValue implements Value { + @JsonTypeName("datetime") + private static final class DatetimeValue implements Value { @JsonProperty("value") private Optional value; @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) - private DateimteValue(@JsonProperty("value") Optional value) { + private DatetimeValue(@JsonProperty("value") Optional value) { this.value = value; } @java.lang.Override public T visit(Visitor visitor) { - return visitor.visitDateimte(value); + return visitor.visitDatetime(value); } @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof DateimteValue && equalTo((DateimteValue) other); + return other instanceof DatetimeValue && equalTo((DatetimeValue) other); } - private boolean equalTo(DateimteValue other) { + private boolean equalTo(DatetimeValue other) { return value.equals(other.value); } diff --git a/seed/java-sdk/unknown/src/main/java/com/seed/unknownAsAny/core/Stream.java b/seed/java-sdk/unknown/src/main/java/com/seed/unknownAsAny/core/Stream.java index 963f6b88e0f..e9b3e0b8c25 100644 --- a/seed/java-sdk/unknown/src/main/java/com/seed/unknownAsAny/core/Stream.java +++ b/seed/java-sdk/unknown/src/main/java/com/seed/unknownAsAny/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/validation/src/main/java/com/seed/validation/core/Stream.java b/seed/java-sdk/validation/src/main/java/com/seed/validation/core/Stream.java index e68b39792ec..7ee070524eb 100644 --- a/seed/java-sdk/validation/src/main/java/com/seed/validation/core/Stream.java +++ b/seed/java-sdk/validation/src/main/java/com/seed/validation/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/variables/src/main/java/com/seed/variables/core/Stream.java b/seed/java-sdk/variables/src/main/java/com/seed/variables/core/Stream.java index cf057915279..467aa025fec 100644 --- a/seed/java-sdk/variables/src/main/java/com/seed/variables/core/Stream.java +++ b/seed/java-sdk/variables/src/main/java/com/seed/variables/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/version-no-default/src/main/java/com/seed/version/core/Stream.java b/seed/java-sdk/version-no-default/src/main/java/com/seed/version/core/Stream.java index 84784670f26..e91455e21f6 100644 --- a/seed/java-sdk/version-no-default/src/main/java/com/seed/version/core/Stream.java +++ b/seed/java-sdk/version-no-default/src/main/java/com/seed/version/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/version/src/main/java/com/seed/version/core/Stream.java b/seed/java-sdk/version/src/main/java/com/seed/version/core/Stream.java index 84784670f26..e91455e21f6 100644 --- a/seed/java-sdk/version/src/main/java/com/seed/version/core/Stream.java +++ b/seed/java-sdk/version/src/main/java/com/seed/version/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-sdk/websocket/src/main/java/com/seed/websocket/core/Stream.java b/seed/java-sdk/websocket/src/main/java/com/seed/websocket/core/Stream.java index 8ea6b34181c..ef22b6f3527 100644 --- a/seed/java-sdk/websocket/src/main/java/com/seed/websocket/core/Stream.java +++ b/seed/java-sdk/websocket/src/main/java/com/seed/websocket/core/Stream.java @@ -9,7 +9,7 @@ import java.util.Scanner; /** - * The {@code Stream} class implmenets {@link Iterable} to provide a simple mechanism for reading and parsing + * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing * objects of a given type from data streamed via a {@link Reader} using a specified delimiter. *

* {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a @@ -23,7 +23,7 @@ public final class Stream implements Iterable { */ private final Class valueType; /** - * The {@link Scanner} used for reading from the input stream and blocking when neede during iteration. + * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration. */ private final Scanner scanner; diff --git a/seed/java-spring/circular-references/resources/ast/types/JsonLike.java b/seed/java-spring/circular-references/resources/ast/types/JsonLike.java index 84fbb5bea24..a537231d58a 100644 --- a/seed/java-spring/circular-references/resources/ast/types/JsonLike.java +++ b/seed/java-spring/circular-references/resources/ast/types/JsonLike.java @@ -114,7 +114,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public JsonLike deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public JsonLike deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, new TypeReference>() {})); diff --git a/seed/java-spring/enum/types/ColorOrOperand.java b/seed/java-spring/enum/types/ColorOrOperand.java index 90d621d471b..8c8674bea06 100644 --- a/seed/java-spring/enum/types/ColorOrOperand.java +++ b/seed/java-spring/enum/types/ColorOrOperand.java @@ -85,7 +85,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public ColorOrOperand deserialize(JsonParser p, DeserializationContext ctxt) throws + public ColorOrOperand deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { diff --git a/seed/java-spring/examples/resources/types/types/CastMember.java b/seed/java-spring/examples/resources/types/types/CastMember.java index e66cb2788a3..1b844cf66e1 100644 --- a/seed/java-spring/examples/resources/types/types/CastMember.java +++ b/seed/java-spring/examples/resources/types/types/CastMember.java @@ -93,7 +93,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public CastMember deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public CastMember deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, Actor.class)); diff --git a/seed/java-spring/examples/types/Type.java b/seed/java-spring/examples/types/Type.java index 689740cf9d6..90f772d2f12 100644 --- a/seed/java-spring/examples/types/Type.java +++ b/seed/java-spring/examples/types/Type.java @@ -85,7 +85,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Type deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Type deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, BasicType.class)); diff --git a/seed/java-spring/exhaustive/.mock/definition/endpoints/params.yml b/seed/java-spring/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/java-spring/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/java-spring/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/java-spring/exhaustive/resources/endpoints/params/ParamsService.java b/seed/java-spring/exhaustive/resources/endpoints/params/ParamsService.java index 09c0f7df667..959bf5c32ba 100644 --- a/seed/java-spring/exhaustive/resources/endpoints/params/ParamsService.java +++ b/seed/java-spring/exhaustive/resources/endpoints/params/ParamsService.java @@ -47,7 +47,7 @@ void getWithQuery(@RequestHeader("Authorization") BearerAuth auth, Principal pri ) void getWithAllowMultipleQuery(@RequestHeader("Authorization") BearerAuth auth, Principal principal, @RequestParam("query") String query, - @RequestParam("numer") Integer numer); + @RequestParam("number") Integer number); @GetMapping( value = "/path-query/{param}", diff --git a/seed/java-spring/grpc-proto-exhaustive/types/Metadata.java b/seed/java-spring/grpc-proto-exhaustive/types/Metadata.java index 0b4d4633312..0c521d2f16d 100644 --- a/seed/java-spring/grpc-proto-exhaustive/types/Metadata.java +++ b/seed/java-spring/grpc-proto-exhaustive/types/Metadata.java @@ -87,7 +87,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Metadata deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Metadata deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return ofMapOfStringToMetadataValue(ObjectMappers.JSON_MAPPER.convertValue(value, new TypeReference>() {})); diff --git a/seed/java-spring/grpc-proto-exhaustive/types/MetadataValue.java b/seed/java-spring/grpc-proto-exhaustive/types/MetadataValue.java index d630e17a57a..1f5fb469af8 100644 --- a/seed/java-spring/grpc-proto-exhaustive/types/MetadataValue.java +++ b/seed/java-spring/grpc-proto-exhaustive/types/MetadataValue.java @@ -95,7 +95,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MetadataValue deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MetadataValue deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); if (value instanceof Double) { return of((Double) value); diff --git a/seed/java-spring/grpc-proto/types/Metadata.java b/seed/java-spring/grpc-proto/types/Metadata.java index 0b4d4633312..0c521d2f16d 100644 --- a/seed/java-spring/grpc-proto/types/Metadata.java +++ b/seed/java-spring/grpc-proto/types/Metadata.java @@ -87,7 +87,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Metadata deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Metadata deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return ofMapOfStringToMetadataValue(ObjectMappers.JSON_MAPPER.convertValue(value, new TypeReference>() {})); diff --git a/seed/java-spring/grpc-proto/types/MetadataValue.java b/seed/java-spring/grpc-proto/types/MetadataValue.java index d630e17a57a..1f5fb469af8 100644 --- a/seed/java-spring/grpc-proto/types/MetadataValue.java +++ b/seed/java-spring/grpc-proto/types/MetadataValue.java @@ -95,7 +95,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MetadataValue deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MetadataValue deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); if (value instanceof Double) { return of((Double) value); diff --git a/seed/java-spring/inline-types/types/UndiscriminatedUnion1.java b/seed/java-spring/inline-types/types/UndiscriminatedUnion1.java index 32a8fa94216..89c5eed2f49 100644 --- a/seed/java-spring/inline-types/types/UndiscriminatedUnion1.java +++ b/seed/java-spring/inline-types/types/UndiscriminatedUnion1.java @@ -153,7 +153,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext ctxt) throws + public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { diff --git a/seed/java-spring/java-inline-types/types/UndiscriminatedUnion1.java b/seed/java-spring/java-inline-types/types/UndiscriminatedUnion1.java index 3356c3dcdb6..b7a4bb77332 100644 --- a/seed/java-spring/java-inline-types/types/UndiscriminatedUnion1.java +++ b/seed/java-spring/java-inline-types/types/UndiscriminatedUnion1.java @@ -145,7 +145,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext ctxt) throws + public UndiscriminatedUnion1 deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { diff --git a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasListVariant.java b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasListVariant.java index 272ac5dc20b..d86098bcd09 100644 --- a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasListVariant.java +++ b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasListVariant.java @@ -80,7 +80,7 @@ static final class Deserializer extends StdDeserializer>() {})); diff --git a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasMapVariant.java b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasMapVariant.java index 532ace15e5f..661c59d0985 100644 --- a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasMapVariant.java +++ b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasMapVariant.java @@ -81,7 +81,7 @@ static final class Deserializer extends StdDeserializer>() {})); diff --git a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasSetVariant.java b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasSetVariant.java index 3b016208668..56cfa88a3e0 100644 --- a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasSetVariant.java +++ b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasSetVariant.java @@ -80,7 +80,7 @@ static final class Deserializer extends StdDeserializer>() {})); diff --git a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasVariant.java b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasVariant.java index caff425b7e0..68b852ef311 100644 --- a/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasVariant.java +++ b/seed/java-spring/java-inline-types/types/UndiscriminatedUnionTypeWithAliasVariant.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer } @java.lang.Override - public UndiscriminatedLiteral deserialize(JsonParser p, DeserializationContext ctxt) throws + public UndiscriminatedLiteral deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { diff --git a/seed/java-spring/multi-line-docs/.mock/definition/user.yml b/seed/java-spring/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/java-spring/multi-line-docs/.mock/definition/user.yml +++ b/seed/java-spring/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/java-spring/multi-line-docs/resources/user/requests/CreateUserRequest.java b/seed/java-spring/multi-line-docs/resources/user/requests/CreateUserRequest.java index 722cf3175a8..992e0ae2797 100644 --- a/seed/java-spring/multi-line-docs/resources/user/requests/CreateUserRequest.java +++ b/seed/java-spring/multi-line-docs/resources/user/requests/CreateUserRequest.java @@ -43,7 +43,7 @@ public String getName() { /** * @return The age of the user. - * This propery is not required. + * This property is not required. */ @JsonProperty("age") public Optional getAge() { @@ -120,7 +120,7 @@ public _FinalStage name(@NotNull String name) { /** *

The age of the user. - * This propery is not required.

+ * This property is not required.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/seed/java-spring/pagination/.mock/definition/users.yml b/seed/java-spring/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/java-spring/pagination/.mock/definition/users.yml +++ b/seed/java-spring/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/java-spring/simple-fhir/types/ResourceList.java b/seed/java-spring/simple-fhir/types/ResourceList.java index 420b86b8c3b..c0abdeec93f 100644 --- a/seed/java-spring/simple-fhir/types/ResourceList.java +++ b/seed/java-spring/simple-fhir/types/ResourceList.java @@ -101,7 +101,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public ResourceList deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public ResourceList deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, Account.class)); diff --git a/seed/java-spring/trace/.mock/definition/submission.yml b/seed/java-spring/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/java-spring/trace/.mock/definition/submission.yml +++ b/seed/java-spring/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/java-spring/trace/resources/submission/types/TraceResponsesPage.java b/seed/java-spring/trace/resources/submission/types/TraceResponsesPage.java index 607672b53c4..2e0865827b2 100644 --- a/seed/java-spring/trace/resources/submission/types/TraceResponsesPage.java +++ b/seed/java-spring/trace/resources/submission/types/TraceResponsesPage.java @@ -34,7 +34,7 @@ private TraceResponsesPage(Optional offset, List traceRe } /** - * @return If present, use this to load subseqent pages. + * @return If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ @JsonProperty("offset") diff --git a/seed/java-spring/trace/resources/submission/types/TraceResponsesPageV2.java b/seed/java-spring/trace/resources/submission/types/TraceResponsesPageV2.java index c8812aa3f70..dacd87cf812 100644 --- a/seed/java-spring/trace/resources/submission/types/TraceResponsesPageV2.java +++ b/seed/java-spring/trace/resources/submission/types/TraceResponsesPageV2.java @@ -34,7 +34,7 @@ private TraceResponsesPageV2(Optional offset, List tra } /** - * @return If present, use this to load subseqent pages. + * @return If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ @JsonProperty("offset") diff --git a/seed/java-spring/undiscriminated-unions/resources/union/types/Key.java b/seed/java-spring/undiscriminated-unions/resources/union/types/Key.java index d42cd365708..e02d2611f7e 100644 --- a/seed/java-spring/undiscriminated-unions/resources/union/types/Key.java +++ b/seed/java-spring/undiscriminated-unions/resources/union/types/Key.java @@ -86,7 +86,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public Key deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public Key deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, KeyType.class)); diff --git a/seed/java-spring/undiscriminated-unions/resources/union/types/MyUnion.java b/seed/java-spring/undiscriminated-unions/resources/union/types/MyUnion.java index d77959f9849..1caeaf8fa1c 100644 --- a/seed/java-spring/undiscriminated-unions/resources/union/types/MyUnion.java +++ b/seed/java-spring/undiscriminated-unions/resources/union/types/MyUnion.java @@ -121,7 +121,7 @@ static final class Deserializer extends StdDeserializer { } @java.lang.Override - public MyUnion deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { + public MyUnion deserialize(JsonParser p, DeserializationContext context) throws IOException { Object value = p.readValueAs(Object.class); try { return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); diff --git a/seed/java-spring/unions/.mock/definition/types.yml b/seed/java-spring/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/java-spring/unions/.mock/definition/types.yml +++ b/seed/java-spring/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/java-spring/unions/resources/types/types/UnionWithOptionalTime.java b/seed/java-spring/unions/resources/types/types/UnionWithOptionalTime.java index d463a42832f..85456d67bff 100644 --- a/seed/java-spring/unions/resources/types/types/UnionWithOptionalTime.java +++ b/seed/java-spring/unions/resources/types/types/UnionWithOptionalTime.java @@ -35,16 +35,16 @@ public static UnionWithOptionalTime date(Optional value) { return new UnionWithOptionalTime(new DateValue(value)); } - public static UnionWithOptionalTime dateimte(Optional value) { - return new UnionWithOptionalTime(new DateimteValue(value)); + public static UnionWithOptionalTime datetime(Optional value) { + return new UnionWithOptionalTime(new DatetimeValue(value)); } public boolean isDate() { return value instanceof DateValue; } - public boolean isDateimte() { - return value instanceof DateimteValue; + public boolean isDatetime() { + return value instanceof DatetimeValue; } public boolean _isUnknown() { @@ -58,9 +58,9 @@ public Optional> getDate() { return Optional.empty(); } - public Optional> getDateimte() { - if (isDateimte()) { - return Optional.of(((DateimteValue) value).value); + public Optional> getDatetime() { + if (isDatetime()) { + return Optional.of(((DatetimeValue) value).value); } return Optional.empty(); } @@ -80,7 +80,7 @@ private Value getValue() { public interface Visitor { T visitDate(Optional date); - T visitDateimte(Optional dateimte); + T visitDatetime(Optional datetime); T _visitUnknown(Object unknownType); } @@ -93,7 +93,7 @@ public interface Visitor { ) @JsonSubTypes({ @JsonSubTypes.Type(DateValue.class), - @JsonSubTypes.Type(DateimteValue.class) + @JsonSubTypes.Type(DatetimeValue.class) }) @JsonIgnoreProperties( ignoreUnknown = true @@ -140,30 +140,30 @@ public String toString() { } } - @JsonTypeName("dateimte") - private static final class DateimteValue implements Value { + @JsonTypeName("datetime") + private static final class DatetimeValue implements Value { @JsonProperty("value") private Optional value; @JsonCreator( mode = JsonCreator.Mode.PROPERTIES ) - private DateimteValue(@JsonProperty("value") Optional value) { + private DatetimeValue(@JsonProperty("value") Optional value) { this.value = value; } @java.lang.Override public T visit(Visitor visitor) { - return visitor.visitDateimte(value); + return visitor.visitDatetime(value); } @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof DateimteValue && equalTo((DateimteValue) other); + return other instanceof DatetimeValue && equalTo((DatetimeValue) other); } - private boolean equalTo(DateimteValue other) { + private boolean equalTo(DatetimeValue other) { return value.equals(other.value); } diff --git a/seed/openapi/exhaustive/.mock/definition/endpoints/params.yml b/seed/openapi/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/openapi/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/openapi/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/openapi/file-upload/.mock/definition/service.yml b/seed/openapi/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/openapi/file-upload/.mock/definition/service.yml +++ b/seed/openapi/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/openapi/file-upload/.mock/ir.json b/seed/openapi/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/openapi/file-upload/.mock/ir.json +++ b/seed/openapi/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/openapi/multi-line-docs/.mock/definition/user.yml b/seed/openapi/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/openapi/multi-line-docs/.mock/definition/user.yml +++ b/seed/openapi/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/openapi/multi-line-docs/openapi.yml b/seed/openapi/multi-line-docs/openapi.yml index abf5326e67d..6a3cebe04a7 100644 --- a/seed/openapi/multi-line-docs/openapi.yml +++ b/seed/openapi/multi-line-docs/openapi.yml @@ -56,7 +56,7 @@ paths: nullable: true description: | The age of the user. - This propery is not required. + This property is not required. required: - name components: diff --git a/seed/openapi/pagination/.mock/definition/users.yml b/seed/openapi/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/openapi/pagination/.mock/definition/users.yml +++ b/seed/openapi/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/openapi/trace/.mock/definition/submission.yml b/seed/openapi/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/openapi/trace/.mock/definition/submission.yml +++ b/seed/openapi/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/openapi/unions/.mock/definition/types.yml b/seed/openapi/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/openapi/unions/.mock/definition/types.yml +++ b/seed/openapi/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/openapi/unions/openapi.yml b/seed/openapi/unions/openapi.yml index 4489d348de8..fc91d952eca 100644 --- a/seed/openapi/unions/openapi.yml +++ b/seed/openapi/unions/openapi.yml @@ -273,7 +273,7 @@ components: type: type: string enum: - - dateimte + - datetime value: type: string format: date-time diff --git a/seed/php-model/exhaustive/.mock/definition/endpoints/params.yml b/seed/php-model/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/php-model/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/php-model/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/php-model/file-upload/.mock/definition/service.yml b/seed/php-model/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/php-model/file-upload/.mock/definition/service.yml +++ b/seed/php-model/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/php-model/file-upload/.mock/ir.json b/seed/php-model/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/php-model/file-upload/.mock/ir.json +++ b/seed/php-model/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/php-model/multi-line-docs/.mock/definition/user.yml b/seed/php-model/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/php-model/multi-line-docs/.mock/definition/user.yml +++ b/seed/php-model/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/php-model/pagination/.mock/definition/users.yml b/seed/php-model/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/php-model/pagination/.mock/definition/users.yml +++ b/seed/php-model/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/php-model/trace/.mock/definition/submission.yml b/seed/php-model/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/php-model/trace/.mock/definition/submission.yml +++ b/seed/php-model/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/php-model/trace/src/Submission/TraceResponsesPage.php b/seed/php-model/trace/src/Submission/TraceResponsesPage.php index bd2c5122f25..049c532b172 100644 --- a/seed/php-model/trace/src/Submission/TraceResponsesPage.php +++ b/seed/php-model/trace/src/Submission/TraceResponsesPage.php @@ -9,7 +9,7 @@ class TraceResponsesPage extends JsonSerializableType { /** - * @var ?int $offset If present, use this to load subseqent pages. + * @var ?int $offset If present, use this to load subsequent pages. The offset is the id of the next trace response to load. */ #[JsonProperty('offset')] diff --git a/seed/php-model/trace/src/Submission/TraceResponsesPageV2.php b/seed/php-model/trace/src/Submission/TraceResponsesPageV2.php index c74b35cf326..18963d30082 100644 --- a/seed/php-model/trace/src/Submission/TraceResponsesPageV2.php +++ b/seed/php-model/trace/src/Submission/TraceResponsesPageV2.php @@ -9,7 +9,7 @@ class TraceResponsesPageV2 extends JsonSerializableType { /** - * @var ?int $offset If present, use this to load subseqent pages. + * @var ?int $offset If present, use this to load subsequent pages. The offset is the id of the next trace response to load. */ #[JsonProperty('offset')] diff --git a/seed/php-model/unions/.mock/definition/types.yml b/seed/php-model/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/php-model/unions/.mock/definition/types.yml +++ b/seed/php-model/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/php-sdk/alias-extends/src/Utils/File.php b/seed/php-sdk/alias-extends/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/alias-extends/src/Utils/File.php +++ b/seed/php-sdk/alias-extends/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/alias/src/Utils/File.php b/seed/php-sdk/alias/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/alias/src/Utils/File.php +++ b/seed/php-sdk/alias/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/any-auth/src/Utils/File.php b/seed/php-sdk/any-auth/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/any-auth/src/Utils/File.php +++ b/seed/php-sdk/any-auth/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/api-wide-base-path/src/Utils/File.php b/seed/php-sdk/api-wide-base-path/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/api-wide-base-path/src/Utils/File.php +++ b/seed/php-sdk/api-wide-base-path/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/audiences/src/Utils/File.php b/seed/php-sdk/audiences/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/audiences/src/Utils/File.php +++ b/seed/php-sdk/audiences/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/auth-environment-variables/src/Utils/File.php b/seed/php-sdk/auth-environment-variables/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/auth-environment-variables/src/Utils/File.php +++ b/seed/php-sdk/auth-environment-variables/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/basic-auth-environment-variables/src/Utils/File.php b/seed/php-sdk/basic-auth-environment-variables/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/basic-auth-environment-variables/src/Utils/File.php +++ b/seed/php-sdk/basic-auth-environment-variables/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/basic-auth/src/Utils/File.php b/seed/php-sdk/basic-auth/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/basic-auth/src/Utils/File.php +++ b/seed/php-sdk/basic-auth/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/bearer-token-environment-variable/src/Utils/File.php b/seed/php-sdk/bearer-token-environment-variable/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/bearer-token-environment-variable/src/Utils/File.php +++ b/seed/php-sdk/bearer-token-environment-variable/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/bytes/src/Utils/File.php b/seed/php-sdk/bytes/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/bytes/src/Utils/File.php +++ b/seed/php-sdk/bytes/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/circular-references-advanced/src/Utils/File.php b/seed/php-sdk/circular-references-advanced/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/circular-references-advanced/src/Utils/File.php +++ b/seed/php-sdk/circular-references-advanced/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/circular-references/src/Utils/File.php b/seed/php-sdk/circular-references/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/circular-references/src/Utils/File.php +++ b/seed/php-sdk/circular-references/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/cross-package-type-names/src/Utils/File.php b/seed/php-sdk/cross-package-type-names/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/cross-package-type-names/src/Utils/File.php +++ b/seed/php-sdk/cross-package-type-names/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/custom-auth/src/Utils/File.php b/seed/php-sdk/custom-auth/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/custom-auth/src/Utils/File.php +++ b/seed/php-sdk/custom-auth/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/enum/src/Utils/File.php b/seed/php-sdk/enum/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/enum/src/Utils/File.php +++ b/seed/php-sdk/enum/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/error-property/src/Utils/File.php b/seed/php-sdk/error-property/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/error-property/src/Utils/File.php +++ b/seed/php-sdk/error-property/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/examples/src/Utils/File.php b/seed/php-sdk/examples/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/examples/src/Utils/File.php +++ b/seed/php-sdk/examples/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/exhaustive/.mock/definition/endpoints/params.yml b/seed/php-sdk/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/php-sdk/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/php-sdk/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/php-sdk/exhaustive/src/Endpoints/Params/ParamsClient.php b/seed/php-sdk/exhaustive/src/Endpoints/Params/ParamsClient.php index e4f1b83e796..38136ae5f9a 100644 --- a/seed/php-sdk/exhaustive/src/Endpoints/Params/ParamsClient.php +++ b/seed/php-sdk/exhaustive/src/Endpoints/Params/ParamsClient.php @@ -162,7 +162,7 @@ public function getWithAllowMultipleQuery(GetWithMultipleQuery $request, ?array { $query = []; $query['query'] = $request->query; - $query['numer'] = $request->numer; + $query['number'] = $request->number; try { $response = $this->client->sendRequest( new JsonApiRequest( diff --git a/seed/php-sdk/exhaustive/src/Endpoints/Params/Requests/GetWithMultipleQuery.php b/seed/php-sdk/exhaustive/src/Endpoints/Params/Requests/GetWithMultipleQuery.php index e5b6a41157b..b59fea5a169 100644 --- a/seed/php-sdk/exhaustive/src/Endpoints/Params/Requests/GetWithMultipleQuery.php +++ b/seed/php-sdk/exhaustive/src/Endpoints/Params/Requests/GetWithMultipleQuery.php @@ -12,20 +12,20 @@ class GetWithMultipleQuery extends JsonSerializableType public array $query; /** - * @var array $numer + * @var array $number */ - public array $numer; + public array $number; /** * @param array{ * query: array, - * numer: array, + * number: array, * } $values */ public function __construct( array $values, ) { $this->query = $values['query']; - $this->numer = $values['numer']; + $this->number = $values['number']; } } diff --git a/seed/php-sdk/exhaustive/src/Utils/File.php b/seed/php-sdk/exhaustive/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/exhaustive/src/Utils/File.php +++ b/seed/php-sdk/exhaustive/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/extends/src/Utils/File.php b/seed/php-sdk/extends/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/extends/src/Utils/File.php +++ b/seed/php-sdk/extends/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/extra-properties/src/Utils/File.php b/seed/php-sdk/extra-properties/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/extra-properties/src/Utils/File.php +++ b/seed/php-sdk/extra-properties/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/file-download/src/Utils/File.php b/seed/php-sdk/file-download/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/file-download/src/Utils/File.php +++ b/seed/php-sdk/file-download/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/file-upload/.mock/definition/service.yml b/seed/php-sdk/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/php-sdk/file-upload/.mock/definition/service.yml +++ b/seed/php-sdk/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/php-sdk/file-upload/.mock/ir.json b/seed/php-sdk/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/php-sdk/file-upload/.mock/ir.json +++ b/seed/php-sdk/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/php-sdk/file-upload/src/Service/Requests/JustFileRequet.php b/seed/php-sdk/file-upload/src/Service/Requests/JustFileRequest.php similarity index 87% rename from seed/php-sdk/file-upload/src/Service/Requests/JustFileRequet.php rename to seed/php-sdk/file-upload/src/Service/Requests/JustFileRequest.php index a78b29a9348..d3f6a4d9e77 100644 --- a/seed/php-sdk/file-upload/src/Service/Requests/JustFileRequet.php +++ b/seed/php-sdk/file-upload/src/Service/Requests/JustFileRequest.php @@ -5,7 +5,7 @@ use Seed\Core\Json\JsonSerializableType; use Seed\Utils\File; -class JustFileRequet extends JsonSerializableType +class JustFileRequest extends JsonSerializableType { /** * @var File $file diff --git a/seed/php-sdk/file-upload/src/Service/Requests/JustFileWithQueryParamsRequet.php b/seed/php-sdk/file-upload/src/Service/Requests/JustFileWithQueryParamsRequest.php similarity index 95% rename from seed/php-sdk/file-upload/src/Service/Requests/JustFileWithQueryParamsRequet.php rename to seed/php-sdk/file-upload/src/Service/Requests/JustFileWithQueryParamsRequest.php index d04203f2091..7442f967d3b 100644 --- a/seed/php-sdk/file-upload/src/Service/Requests/JustFileWithQueryParamsRequet.php +++ b/seed/php-sdk/file-upload/src/Service/Requests/JustFileWithQueryParamsRequest.php @@ -5,7 +5,7 @@ use Seed\Core\Json\JsonSerializableType; use Seed\Utils\File; -class JustFileWithQueryParamsRequet extends JsonSerializableType +class JustFileWithQueryParamsRequest extends JsonSerializableType { /** * @var ?string $maybeString diff --git a/seed/php-sdk/file-upload/src/Service/ServiceClient.php b/seed/php-sdk/file-upload/src/Service/ServiceClient.php index 75bd4004c43..2587f585d74 100644 --- a/seed/php-sdk/file-upload/src/Service/ServiceClient.php +++ b/seed/php-sdk/file-upload/src/Service/ServiceClient.php @@ -11,8 +11,8 @@ use Seed\Core\Multipart\MultipartApiRequest; use Seed\Core\Client\HttpMethod; use Psr\Http\Client\ClientExceptionInterface; -use Seed\Service\Requests\JustFileRequet; -use Seed\Service\Requests\JustFileWithQueryParamsRequet; +use Seed\Service\Requests\JustFileRequest; +use Seed\Service\Requests\JustFileWithQueryParamsRequest; use Seed\Service\Requests\WithContentTypeRequest; class ServiceClient @@ -102,14 +102,14 @@ public function post(MyRequest $request, ?array $options = null): void } /** - * @param JustFileRequet $request + * @param JustFileRequest $request * @param ?array{ * baseUrl?: string, * } $options * @throws SeedException * @throws SeedApiException */ - public function justFile(JustFileRequet $request, ?array $options = null): void + public function justFile(JustFileRequest $request, ?array $options = null): void { $body = new MultipartFormData(); $body->addPart($request->file->toMultipartFormDataPart('file')); @@ -137,14 +137,14 @@ public function justFile(JustFileRequet $request, ?array $options = null): void } /** - * @param JustFileWithQueryParamsRequet $request + * @param JustFileWithQueryParamsRequest $request * @param ?array{ * baseUrl?: string, * } $options * @throws SeedException * @throws SeedApiException */ - public function justFileWithQueryParams(JustFileWithQueryParamsRequet $request, ?array $options = null): void + public function justFileWithQueryParams(JustFileWithQueryParamsRequest $request, ?array $options = null): void { $query = []; $query['integer'] = $request->integer; diff --git a/seed/php-sdk/file-upload/src/Utils/File.php b/seed/php-sdk/file-upload/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/file-upload/src/Utils/File.php +++ b/seed/php-sdk/file-upload/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/folders/src/Utils/File.php b/seed/php-sdk/folders/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/folders/src/Utils/File.php +++ b/seed/php-sdk/folders/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/grpc-proto-exhaustive/src/Utils/File.php b/seed/php-sdk/grpc-proto-exhaustive/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/grpc-proto-exhaustive/src/Utils/File.php +++ b/seed/php-sdk/grpc-proto-exhaustive/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/grpc-proto/src/Utils/File.php b/seed/php-sdk/grpc-proto/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/grpc-proto/src/Utils/File.php +++ b/seed/php-sdk/grpc-proto/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/idempotency-headers/src/Utils/File.php b/seed/php-sdk/idempotency-headers/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/idempotency-headers/src/Utils/File.php +++ b/seed/php-sdk/idempotency-headers/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/imdb/src/Utils/File.php b/seed/php-sdk/imdb/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/imdb/src/Utils/File.php +++ b/seed/php-sdk/imdb/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/inline-types/src/Utils/File.php b/seed/php-sdk/inline-types/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/inline-types/src/Utils/File.php +++ b/seed/php-sdk/inline-types/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/license/src/Utils/File.php b/seed/php-sdk/license/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/license/src/Utils/File.php +++ b/seed/php-sdk/license/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/literal/src/Utils/File.php b/seed/php-sdk/literal/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/literal/src/Utils/File.php +++ b/seed/php-sdk/literal/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/mixed-case/src/Utils/File.php b/seed/php-sdk/mixed-case/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/mixed-case/src/Utils/File.php +++ b/seed/php-sdk/mixed-case/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/mixed-file-directory/src/Utils/File.php b/seed/php-sdk/mixed-file-directory/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/mixed-file-directory/src/Utils/File.php +++ b/seed/php-sdk/mixed-file-directory/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/multi-line-docs/.mock/definition/user.yml b/seed/php-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/php-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/php-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/php-sdk/multi-line-docs/src/User/Requests/CreateUserRequest.php b/seed/php-sdk/multi-line-docs/src/User/Requests/CreateUserRequest.php index cf6024ad0ba..1cf4bd55eee 100644 --- a/seed/php-sdk/multi-line-docs/src/User/Requests/CreateUserRequest.php +++ b/seed/php-sdk/multi-line-docs/src/User/Requests/CreateUserRequest.php @@ -17,7 +17,7 @@ class CreateUserRequest extends JsonSerializableType /** * @var ?int $age The age of the user. - This propery is not required. + This property is not required. */ #[JsonProperty('age')] diff --git a/seed/php-sdk/multi-line-docs/src/Utils/File.php b/seed/php-sdk/multi-line-docs/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/multi-line-docs/src/Utils/File.php +++ b/seed/php-sdk/multi-line-docs/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/no-environment/src/Utils/File.php b/seed/php-sdk/no-environment/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/no-environment/src/Utils/File.php +++ b/seed/php-sdk/no-environment/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/nullable/src/Utils/File.php b/seed/php-sdk/nullable/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/nullable/src/Utils/File.php +++ b/seed/php-sdk/nullable/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/oauth-client-credentials-custom/src/Utils/File.php b/seed/php-sdk/oauth-client-credentials-custom/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/oauth-client-credentials-custom/src/Utils/File.php +++ b/seed/php-sdk/oauth-client-credentials-custom/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/oauth-client-credentials-default/src/Utils/File.php b/seed/php-sdk/oauth-client-credentials-default/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/oauth-client-credentials-default/src/Utils/File.php +++ b/seed/php-sdk/oauth-client-credentials-default/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/oauth-client-credentials-environment-variables/src/Utils/File.php b/seed/php-sdk/oauth-client-credentials-environment-variables/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/oauth-client-credentials-environment-variables/src/Utils/File.php +++ b/seed/php-sdk/oauth-client-credentials-environment-variables/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/oauth-client-credentials-nested-root/src/Utils/File.php b/seed/php-sdk/oauth-client-credentials-nested-root/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/oauth-client-credentials-nested-root/src/Utils/File.php +++ b/seed/php-sdk/oauth-client-credentials-nested-root/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/oauth-client-credentials/src/Utils/File.php b/seed/php-sdk/oauth-client-credentials/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/oauth-client-credentials/src/Utils/File.php +++ b/seed/php-sdk/oauth-client-credentials/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/object/src/Utils/File.php b/seed/php-sdk/object/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/object/src/Utils/File.php +++ b/seed/php-sdk/object/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/objects-with-imports/src/Utils/File.php b/seed/php-sdk/objects-with-imports/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/objects-with-imports/src/Utils/File.php +++ b/seed/php-sdk/objects-with-imports/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/optional/src/Utils/File.php b/seed/php-sdk/optional/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/optional/src/Utils/File.php +++ b/seed/php-sdk/optional/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/package-yml/src/Utils/File.php b/seed/php-sdk/package-yml/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/package-yml/src/Utils/File.php +++ b/seed/php-sdk/package-yml/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/pagination/.mock/definition/users.yml b/seed/php-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/php-sdk/pagination/.mock/definition/users.yml +++ b/seed/php-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/php-sdk/pagination/src/Users/Requests/ListUsersOffsetStepPaginationRequest.php b/seed/php-sdk/pagination/src/Users/Requests/ListUsersOffsetStepPaginationRequest.php index 042b5fe4a3e..1adfc6676ff 100644 --- a/seed/php-sdk/pagination/src/Users/Requests/ListUsersOffsetStepPaginationRequest.php +++ b/seed/php-sdk/pagination/src/Users/Requests/ListUsersOffsetStepPaginationRequest.php @@ -13,7 +13,7 @@ class ListUsersOffsetStepPaginationRequest extends JsonSerializableType public ?int $page; /** - * @var ?int $limit The maxiumum number of elements to return. + * @var ?int $limit The maximum number of elements to return. This is also used as the step size in this paginated endpoint. */ diff --git a/seed/php-sdk/pagination/src/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.php b/seed/php-sdk/pagination/src/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.php index 245b218b501..8e6299522cc 100644 --- a/seed/php-sdk/pagination/src/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.php +++ b/seed/php-sdk/pagination/src/Users/Requests/ListWithOffsetPaginationHasNextPageRequest.php @@ -13,7 +13,7 @@ class ListWithOffsetPaginationHasNextPageRequest extends JsonSerializableType public ?int $page; /** - * @var ?int $limit The maxiumum number of elements to return. + * @var ?int $limit The maximum number of elements to return. This is also used as the step size in this paginated endpoint. */ diff --git a/seed/php-sdk/pagination/src/Utils/File.php b/seed/php-sdk/pagination/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/pagination/src/Utils/File.php +++ b/seed/php-sdk/pagination/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/path-parameters/src/Utils/File.php b/seed/php-sdk/path-parameters/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/path-parameters/src/Utils/File.php +++ b/seed/php-sdk/path-parameters/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/plain-text/src/Utils/File.php b/seed/php-sdk/plain-text/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/plain-text/src/Utils/File.php +++ b/seed/php-sdk/plain-text/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/query-parameters/src/Utils/File.php b/seed/php-sdk/query-parameters/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/query-parameters/src/Utils/File.php +++ b/seed/php-sdk/query-parameters/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/reserved-keywords/src/Utils/File.php b/seed/php-sdk/reserved-keywords/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/reserved-keywords/src/Utils/File.php +++ b/seed/php-sdk/reserved-keywords/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/response-property/src/Utils/File.php b/seed/php-sdk/response-property/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/response-property/src/Utils/File.php +++ b/seed/php-sdk/response-property/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/seed.yml b/seed/php-sdk/seed.yml index 3716fba4f05..8d835a32df2 100644 --- a/seed/php-sdk/seed.yml +++ b/seed/php-sdk/seed.yml @@ -36,7 +36,7 @@ allowedFailures: - enum # Enums don't support the fromJson method yet. - exhaustive - # Mutli URL environments are not supported yet. + # Multi URL environments are not supported yet. - multi-url-environment - multi-url-environment-no-default # Enum as map key not allowed in PHP. diff --git a/seed/php-sdk/server-sent-event-examples/src/Utils/File.php b/seed/php-sdk/server-sent-event-examples/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/server-sent-event-examples/src/Utils/File.php +++ b/seed/php-sdk/server-sent-event-examples/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/server-sent-events/src/Utils/File.php b/seed/php-sdk/server-sent-events/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/server-sent-events/src/Utils/File.php +++ b/seed/php-sdk/server-sent-events/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/simple-fhir/src/Utils/File.php b/seed/php-sdk/simple-fhir/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/simple-fhir/src/Utils/File.php +++ b/seed/php-sdk/simple-fhir/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/single-url-environment-default/src/Utils/File.php b/seed/php-sdk/single-url-environment-default/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/single-url-environment-default/src/Utils/File.php +++ b/seed/php-sdk/single-url-environment-default/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/single-url-environment-no-default/src/Utils/File.php b/seed/php-sdk/single-url-environment-no-default/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/single-url-environment-no-default/src/Utils/File.php +++ b/seed/php-sdk/single-url-environment-no-default/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/streaming-parameter/src/Utils/File.php b/seed/php-sdk/streaming-parameter/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/streaming-parameter/src/Utils/File.php +++ b/seed/php-sdk/streaming-parameter/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/streaming/src/Utils/File.php b/seed/php-sdk/streaming/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/streaming/src/Utils/File.php +++ b/seed/php-sdk/streaming/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/trace/.mock/definition/submission.yml b/seed/php-sdk/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/php-sdk/trace/.mock/definition/submission.yml +++ b/seed/php-sdk/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPage.php b/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPage.php index eadf67acf92..dc4a6e63eae 100644 --- a/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPage.php +++ b/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPage.php @@ -9,7 +9,7 @@ class TraceResponsesPage extends JsonSerializableType { /** - * @var ?int $offset If present, use this to load subseqent pages. + * @var ?int $offset If present, use this to load subsequent pages. The offset is the id of the next trace response to load. */ #[JsonProperty('offset')] diff --git a/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPageV2.php b/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPageV2.php index e6da0be3ad3..8a006f982fe 100644 --- a/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPageV2.php +++ b/seed/php-sdk/trace/src/Submission/Types/TraceResponsesPageV2.php @@ -9,7 +9,7 @@ class TraceResponsesPageV2 extends JsonSerializableType { /** - * @var ?int $offset If present, use this to load subseqent pages. + * @var ?int $offset If present, use this to load subsequent pages. The offset is the id of the next trace response to load. */ #[JsonProperty('offset')] diff --git a/seed/php-sdk/trace/src/Utils/File.php b/seed/php-sdk/trace/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/trace/src/Utils/File.php +++ b/seed/php-sdk/trace/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/undiscriminated-unions/src/Utils/File.php b/seed/php-sdk/undiscriminated-unions/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/undiscriminated-unions/src/Utils/File.php +++ b/seed/php-sdk/undiscriminated-unions/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/unions/.mock/definition/types.yml b/seed/php-sdk/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/php-sdk/unions/.mock/definition/types.yml +++ b/seed/php-sdk/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/php-sdk/unions/src/Utils/File.php b/seed/php-sdk/unions/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/unions/src/Utils/File.php +++ b/seed/php-sdk/unions/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/unknown/src/Utils/File.php b/seed/php-sdk/unknown/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/unknown/src/Utils/File.php +++ b/seed/php-sdk/unknown/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/validation/src/Utils/File.php b/seed/php-sdk/validation/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/validation/src/Utils/File.php +++ b/seed/php-sdk/validation/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/variables/src/Utils/File.php b/seed/php-sdk/variables/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/variables/src/Utils/File.php +++ b/seed/php-sdk/variables/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/version-no-default/src/Utils/File.php b/seed/php-sdk/version-no-default/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/version-no-default/src/Utils/File.php +++ b/seed/php-sdk/version-no-default/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/version/src/Utils/File.php b/seed/php-sdk/version/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/version/src/Utils/File.php +++ b/seed/php-sdk/version/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/php-sdk/websocket/src/Utils/File.php b/seed/php-sdk/websocket/src/Utils/File.php index 753748138d4..b91f2419e18 100644 --- a/seed/php-sdk/websocket/src/Utils/File.php +++ b/seed/php-sdk/websocket/src/Utils/File.php @@ -88,7 +88,7 @@ public static function createFromString( /** * Maps this File into a multipart form data part. * - * @param string $name The name of the mutlipart form data part. + * @param string $name The name of the multipart form data part. * @param ?string $contentType Overrides the Content-Type associated with the file, if any. * @return MultipartFormDataPart */ diff --git a/seed/postman/exhaustive/.mock/definition/endpoints/params.yml b/seed/postman/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/postman/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/postman/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/postman/exhaustive/collection.json b/seed/postman/exhaustive/collection.json index 7a154d96022..06e853ac19c 100644 --- a/seed/postman/exhaustive/collection.json +++ b/seed/postman/exhaustive/collection.json @@ -2024,7 +2024,7 @@ "request": { "description": "GET with multiple of same query param", "url": { - "raw": "{{baseUrl}}/params?query=query&numer=1", + "raw": "{{baseUrl}}/params?query=query&number=1", "host": [ "{{baseUrl}}" ], @@ -2038,7 +2038,7 @@ "value": "query" }, { - "key": "numer", + "key": "number", "description": null, "value": "1" } @@ -2064,7 +2064,7 @@ "originalRequest": { "description": "GET with multiple of same query param", "url": { - "raw": "{{baseUrl}}/params?query=query&numer=1", + "raw": "{{baseUrl}}/params?query=query&number=1", "host": [ "{{baseUrl}}" ], @@ -2078,7 +2078,7 @@ "value": "query" }, { - "key": "numer", + "key": "number", "description": null, "value": "1" } diff --git a/seed/postman/file-upload/.mock/definition/service.yml b/seed/postman/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/postman/file-upload/.mock/definition/service.yml +++ b/seed/postman/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/postman/file-upload/.mock/ir.json b/seed/postman/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/postman/file-upload/.mock/ir.json +++ b/seed/postman/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/postman/multi-line-docs/.mock/definition/user.yml b/seed/postman/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/postman/multi-line-docs/.mock/definition/user.yml +++ b/seed/postman/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/postman/pagination/.mock/definition/users.yml b/seed/postman/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/postman/pagination/.mock/definition/users.yml +++ b/seed/postman/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/postman/pagination/collection.json b/seed/postman/pagination/collection.json index fe95ff43f11..0e0b12142c4 100644 --- a/seed/postman/pagination/collection.json +++ b/seed/postman/pagination/collection.json @@ -595,7 +595,7 @@ }, { "key": "limit", - "description": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + "description": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", "value": "1" }, { @@ -640,7 +640,7 @@ }, { "key": "limit", - "description": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + "description": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", "value": "1" }, { @@ -689,7 +689,7 @@ }, { "key": "limit", - "description": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + "description": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", "value": "1" }, { @@ -734,7 +734,7 @@ }, { "key": "limit", - "description": "The maxiumum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", + "description": "The maximum number of elements to return.\nThis is also used as the step size in this\npaginated endpoint.", "value": "1" }, { diff --git a/seed/postman/trace/.mock/definition/submission.yml b/seed/postman/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/postman/trace/.mock/definition/submission.yml +++ b/seed/postman/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/postman/unions/.mock/definition/types.yml b/seed/postman/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/postman/unions/.mock/definition/types.yml +++ b/seed/postman/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/pydantic-v2/exhaustive/.mock/definition/endpoints/params.yml b/seed/pydantic-v2/exhaustive/.mock/definition/endpoints/params.yml index 7766547ad79..e9e6435ab0f 100644 --- a/seed/pydantic-v2/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/pydantic-v2/exhaustive/.mock/definition/endpoints/params.yml @@ -30,7 +30,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/pydantic-v2/file-upload/.mock/definition/service.yml b/seed/pydantic-v2/file-upload/.mock/definition/service.yml index 5ae95021c2d..f3a7b837ff0 100644 --- a/seed/pydantic-v2/file-upload/.mock/definition/service.yml +++ b/seed/pydantic-v2/file-upload/.mock/definition/service.yml @@ -26,16 +26,16 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file - + justFileWithQueryParams: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer @@ -49,19 +49,19 @@ service: body: properties: file: file - - withContentType: + + withContentType: path: "/with-content-type" method: POST request: name: WithContentTypeRequest body: properties: - file: + file: type: file content-type: application/octet-stream foo: string - bar: + bar: type: MyObject content-type: application/json diff --git a/seed/pydantic-v2/multi-line-docs/.mock/definition/user.yml b/seed/pydantic-v2/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/pydantic-v2/multi-line-docs/.mock/definition/user.yml +++ b/seed/pydantic-v2/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/pydantic-v2/pagination/.mock/definition/users.yml b/seed/pydantic-v2/pagination/.mock/definition/users.yml index ecde10ef707..52f14f37aa0 100644 --- a/seed/pydantic-v2/pagination/.mock/definition/users.yml +++ b/seed/pydantic-v2/pagination/.mock/definition/users.yml @@ -1,9 +1,9 @@ imports: root: __package__.yml -types: - Order: - enum: +types: + Order: + enum: - asc - desc @@ -15,8 +15,8 @@ types: properties: cursor: optional - UserListContainer: - properties: + UserListContainer: + properties: users: list UserPage: @@ -24,8 +24,8 @@ types: data: UserListContainer next: optional - UserOptionalListContainer: - properties: + UserOptionalListContainer: + properties: users: optional> UserOptionalListPage: @@ -37,47 +37,47 @@ types: properties: results: list - ListUsersExtendedResponse: + ListUsersExtendedResponse: extends: - UserPage properties: - total_count: + total_count: type: integer docs: The totall number of /users - ListUsersExtendedOptionalListResponse: + ListUsersExtendedOptionalListResponse: extends: - UserOptionalListPage properties: - total_count: + total_count: type: integer docs: The totall number of /users - - ListUsersPaginationResponse: - properties: + + ListUsersPaginationResponse: + properties: hasNextPage: optional page: optional - total_count: + total_count: type: integer docs: The totall number of /users data: list - Page: - properties: - page: + Page: + properties: + page: type: integer docs: The current page next: optional per_page: integer total_page: integer - NextPage: - properties: + NextPage: + properties: page: integer starting_after: string - User: - properties: + User: + properties: name: string id: integer @@ -86,7 +86,7 @@ service: base-path: /users endpoints: listWithCursorPagination: - pagination: + pagination: cursor: $request.starting_after next_cursor: $response.page.next.starting_after results: $response.data @@ -95,41 +95,41 @@ service: request: name: ListUsersCursorPaginationRequest query-parameters: - page: + page: type: optional docs: Defaults to first page - per_page: + per_page: type: optional docs: Defaults to per page - order: - type: optional - starting_after: + order: + type: optional + starting_after: type: optional - docs: | - The cursor used for pagination in order to fetch + docs: | + The cursor used for pagination in order to fetch the next page of results. response: ListUsersPaginationResponse listWithBodyCursorPagination: - pagination: + pagination: cursor: $request.pagination.cursor next_cursor: $response.page.next.starting_after results: $response.data method: POST path: "" - request: + request: name: ListUsersBodyCursorPaginationRequest - body: + body: properties: - pagination: + pagination: type: optional - docs: | + docs: | The object that contains the cursor used for pagination in order to fetch the next page of results. response: ListUsersPaginationResponse listWithOffsetPagination: - pagination: + pagination: offset: $request.page results: $response.data method: GET @@ -137,34 +137,34 @@ service: request: name: ListUsersOffsetPaginationRequest query-parameters: - page: + page: type: optional docs: Defaults to first page - per_page: + per_page: type: optional docs: Defaults to per page - order: - type: optional - starting_after: + order: + type: optional + starting_after: type: optional - docs: | - The cursor used for pagination in order to fetch + docs: | + The cursor used for pagination in order to fetch the next page of results. response: ListUsersPaginationResponse listWithBodyOffsetPagination: - pagination: + pagination: offset: $request.pagination.page results: $response.data method: POST path: "" - request: + request: name: ListUsersBodyOffsetPaginationRequest - body: + body: properties: - pagination: + pagination: type: optional - docs: | + docs: | The object that contains the offset used for pagination in order to fetch the next page of results. response: ListUsersPaginationResponse @@ -185,14 +185,14 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: type: optional response: ListUsersPaginationResponse - - listWithOffsetPaginationHasNextPage: + + listWithOffsetPaginationHasNextPage: pagination: offset: $request.page results: $response.data @@ -209,7 +209,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -217,7 +217,7 @@ service: response: ListUsersPaginationResponse listWithExtendedResults: - pagination: + pagination: cursor: $request.cursor next_cursor: $response.next results: $response.data.users @@ -230,7 +230,7 @@ service: response: ListUsersExtendedResponse listWithExtendedResultsAndOptionalData: - pagination: + pagination: cursor: $request.cursor next_cursor: $response.next results: $response.data.users @@ -243,7 +243,7 @@ service: response: ListUsersExtendedOptionalListResponse listUsernames: - pagination: + pagination: cursor: $request.starting_after next_cursor: $response.cursor.after results: $response.cursor.data @@ -252,10 +252,10 @@ service: request: name: ListUsernamesRequest query-parameters: - starting_after: + starting_after: type: optional - docs: | - The cursor used for pagination in order to fetch + docs: | + The cursor used for pagination in order to fetch the next page of results. response: root.UsernameCursor @@ -266,6 +266,6 @@ service: request: name: ListWithGlobalConfigRequest query-parameters: - offset: + offset: type: optional response: UsernameContainer \ No newline at end of file diff --git a/seed/pydantic-v2/trace/.mock/definition/submission.yml b/seed/pydantic-v2/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/pydantic-v2/trace/.mock/definition/submission.yml +++ b/seed/pydantic-v2/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page.py b/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page.py index ac8d3fa4426..431980e798e 100644 --- a/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page.py +++ b/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page.py @@ -6,10 +6,10 @@ class TraceResponsesPage(BaseModel): offset: Optional[int] = None """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ - trace_responses: List[TraceResponse] = + trace_responses: List[TraceResponse] = class Config: frozen = True smart_union = True diff --git a/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page_v_2.py b/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page_v_2.py index 66257c19649..0d84356dea4 100644 --- a/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page_v_2.py +++ b/seed/pydantic-v2/trace/resources/submission/types/trace_responses_page_v_2.py @@ -6,10 +6,10 @@ class TraceResponsesPageV2(BaseModel): offset: Optional[int] = None """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ - trace_responses: List[TraceResponseV2] = + trace_responses: List[TraceResponseV2] = class Config: frozen = True smart_union = True diff --git a/seed/pydantic-v2/unions/.mock/definition/types.yml b/seed/pydantic-v2/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/pydantic-v2/unions/.mock/definition/types.yml +++ b/seed/pydantic-v2/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/pydantic/alias-extends/src/seed/alias_extends/core/pydantic_utilities.py b/seed/pydantic/alias-extends/src/seed/alias_extends/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/alias-extends/src/seed/alias_extends/core/pydantic_utilities.py +++ b/seed/pydantic/alias-extends/src/seed/alias_extends/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py b/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py +++ b/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/any-auth/src/seed/any_auth/core/pydantic_utilities.py b/seed/pydantic/any-auth/src/seed/any_auth/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/any-auth/src/seed/any_auth/core/pydantic_utilities.py +++ b/seed/pydantic/any-auth/src/seed/any_auth/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py b/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py +++ b/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py b/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py +++ b/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py b/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py +++ b/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py b/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py +++ b/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py b/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py +++ b/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py b/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py +++ b/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py b/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py +++ b/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py b/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py index c14b4828025..e44f45a5b5c 100644 --- a/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py +++ b/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/cross-package-type-names/src/seed/cross_package_type_names/core/pydantic_utilities.py b/seed/pydantic/cross-package-type-names/src/seed/cross_package_type_names/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/cross-package-type-names/src/seed/cross_package_type_names/core/pydantic_utilities.py +++ b/seed/pydantic/cross-package-type-names/src/seed/cross_package_type_names/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py b/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py +++ b/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py b/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py +++ b/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py b/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py +++ b/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py b/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py +++ b/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml b/seed/pydantic/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/pydantic/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml +++ b/seed/pydantic/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py b/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py +++ b/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml b/seed/pydantic/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/pydantic/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml +++ b/seed/pydantic/exhaustive/pydantic-v2/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py b/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py +++ b/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py b/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py +++ b/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py b/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py +++ b/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py b/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py +++ b/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/file-upload/.mock/definition/service.yml b/seed/pydantic/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/pydantic/file-upload/.mock/definition/service.yml +++ b/seed/pydantic/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/pydantic/file-upload/.mock/ir.json b/seed/pydantic/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/pydantic/file-upload/.mock/ir.json +++ b/seed/pydantic/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py b/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py +++ b/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/grpc-proto-exhaustive/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/grpc-proto-exhaustive/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/grpc-proto-exhaustive/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/grpc-proto-exhaustive/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/grpc-proto/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/grpc-proto/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/grpc-proto/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/grpc-proto/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/grpc/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/grpc/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/grpc/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/grpc/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py b/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py +++ b/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/inline-types/src/seed/object/core/pydantic_utilities.py b/seed/pydantic/inline-types/src/seed/object/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/inline-types/src/seed/object/core/pydantic_utilities.py +++ b/seed/pydantic/inline-types/src/seed/object/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/license/src/seed/license/core/pydantic_utilities.py b/seed/pydantic/license/src/seed/license/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/license/src/seed/license/core/pydantic_utilities.py +++ b/seed/pydantic/license/src/seed/license/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py b/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py +++ b/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py b/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py +++ b/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/mixed-file-directory/src/seed/mixed_file_directory/core/pydantic_utilities.py b/seed/pydantic/mixed-file-directory/src/seed/mixed_file_directory/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/mixed-file-directory/src/seed/mixed_file_directory/core/pydantic_utilities.py +++ b/seed/pydantic/mixed-file-directory/src/seed/mixed_file_directory/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/multi-line-docs/.mock/definition/user.yml b/seed/pydantic/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/pydantic/multi-line-docs/.mock/definition/user.yml +++ b/seed/pydantic/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py b/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py +++ b/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py b/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py +++ b/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py b/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py +++ b/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py b/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py +++ b/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/nullable/src/seed/nullable/core/pydantic_utilities.py b/seed/pydantic/nullable/src/seed/nullable/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/nullable/src/seed/nullable/core/pydantic_utilities.py +++ b/seed/pydantic/nullable/src/seed/nullable/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/oauth-client-credentials-custom/src/seed/oauth_client_credentials/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-custom/src/seed/oauth_client_credentials/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/oauth-client-credentials-custom/src/seed/oauth_client_credentials/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-custom/src/seed/oauth_client_credentials/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py b/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py +++ b/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py b/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py +++ b/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py b/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py +++ b/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py b/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py +++ b/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/pagination/.mock/definition/users.yml b/seed/pydantic/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/pydantic/pagination/.mock/definition/users.yml +++ b/seed/pydantic/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py b/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py +++ b/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/path-parameters/src/seed/path_parameters/core/pydantic_utilities.py b/seed/pydantic/path-parameters/src/seed/path_parameters/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/path-parameters/src/seed/path_parameters/core/pydantic_utilities.py +++ b/seed/pydantic/path-parameters/src/seed/path_parameters/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py b/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py +++ b/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py b/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py +++ b/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py b/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py +++ b/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py b/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py +++ b/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/server-sent-event-examples/src/seed/server_sent_events/core/pydantic_utilities.py b/seed/pydantic/server-sent-event-examples/src/seed/server_sent_events/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/server-sent-event-examples/src/seed/server_sent_events/core/pydantic_utilities.py +++ b/seed/pydantic/server-sent-event-examples/src/seed/server_sent_events/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py b/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py +++ b/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/simple-fhir/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/simple-fhir/src/seed/api/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/simple-fhir/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/simple-fhir/src/seed/api/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py b/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py +++ b/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py b/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py +++ b/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py b/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py +++ b/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py b/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py +++ b/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/trace/.mock/definition/submission.yml b/seed/pydantic/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/pydantic/trace/.mock/definition/submission.yml +++ b/seed/pydantic/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py b/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py +++ b/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page.py b/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page.py index 87e13671121..e81ce5f9a0e 100644 --- a/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page.py +++ b/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page.py @@ -14,7 +14,7 @@ class TraceResponsesPage(UniversalBaseModel): offset: typing.Optional[int] = pydantic.Field(default=None) """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ diff --git a/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page_v_2.py b/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page_v_2.py index 0d1c0aa25ac..ca54a3c7969 100644 --- a/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page_v_2.py +++ b/seed/pydantic/trace/src/seed/trace/resources/submission/trace_responses_page_v_2.py @@ -14,7 +14,7 @@ class TraceResponsesPageV2(UniversalBaseModel): offset: typing.Optional[int] = pydantic.Field(default=None) """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ diff --git a/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py b/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py +++ b/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/unions/.mock/definition/types.yml b/seed/pydantic/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/pydantic/unions/.mock/definition/types.yml +++ b/seed/pydantic/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/pydantic/unions/src/seed/unions/__init__.py b/seed/pydantic/unions/src/seed/unions/__init__.py index d665b2233c0..10458e6d1a6 100644 --- a/seed/pydantic/unions/src/seed/unions/__init__.py +++ b/seed/pydantic/unions/src/seed/unions/__init__.py @@ -21,7 +21,7 @@ UnionWithLiteral_Fern, UnionWithOptionalTime, UnionWithOptionalTime_Date, - UnionWithOptionalTime_Dateimte, + UnionWithOptionalTime_Datetime, UnionWithPrimitive, UnionWithPrimitive_Integer, UnionWithPrimitive_String, @@ -64,7 +64,7 @@ "UnionWithLiteral_Fern", "UnionWithOptionalTime", "UnionWithOptionalTime_Date", - "UnionWithOptionalTime_Dateimte", + "UnionWithOptionalTime_Datetime", "UnionWithPrimitive", "UnionWithPrimitive_Integer", "UnionWithPrimitive_String", diff --git a/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py b/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py +++ b/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/unions/src/seed/unions/resources/__init__.py b/seed/pydantic/unions/src/seed/unions/resources/__init__.py index 511463a95bc..9e74bce9a9e 100644 --- a/seed/pydantic/unions/src/seed/unions/resources/__init__.py +++ b/seed/pydantic/unions/src/seed/unions/resources/__init__.py @@ -16,7 +16,7 @@ UnionWithLiteral_Fern, UnionWithOptionalTime, UnionWithOptionalTime_Date, - UnionWithOptionalTime_Dateimte, + UnionWithOptionalTime_Datetime, UnionWithPrimitive, UnionWithPrimitive_Integer, UnionWithPrimitive_String, @@ -58,7 +58,7 @@ "UnionWithLiteral_Fern", "UnionWithOptionalTime", "UnionWithOptionalTime_Date", - "UnionWithOptionalTime_Dateimte", + "UnionWithOptionalTime_Datetime", "UnionWithPrimitive", "UnionWithPrimitive_Integer", "UnionWithPrimitive_String", diff --git a/seed/pydantic/unions/src/seed/unions/resources/types/__init__.py b/seed/pydantic/unions/src/seed/unions/resources/types/__init__.py index 42d3faa423c..80b98d57d81 100644 --- a/seed/pydantic/unions/src/seed/unions/resources/types/__init__.py +++ b/seed/pydantic/unions/src/seed/unions/resources/types/__init__.py @@ -11,7 +11,7 @@ ) from .union_with_discriminant import UnionWithDiscriminant, UnionWithDiscriminant_Bar, UnionWithDiscriminant_Foo from .union_with_literal import UnionWithLiteral, UnionWithLiteral_Fern -from .union_with_optional_time import UnionWithOptionalTime, UnionWithOptionalTime_Date, UnionWithOptionalTime_Dateimte +from .union_with_optional_time import UnionWithOptionalTime, UnionWithOptionalTime_Date, UnionWithOptionalTime_Datetime from .union_with_primitive import UnionWithPrimitive, UnionWithPrimitive_Integer, UnionWithPrimitive_String from .union_with_single_element import UnionWithSingleElement, UnionWithSingleElement_Foo from .union_with_time import UnionWithTime, UnionWithTime_Date, UnionWithTime_Datetime, UnionWithTime_Value @@ -33,7 +33,7 @@ "UnionWithLiteral_Fern", "UnionWithOptionalTime", "UnionWithOptionalTime_Date", - "UnionWithOptionalTime_Dateimte", + "UnionWithOptionalTime_Datetime", "UnionWithPrimitive", "UnionWithPrimitive_Integer", "UnionWithPrimitive_String", diff --git a/seed/pydantic/unions/src/seed/unions/resources/types/union_with_optional_time.py b/seed/pydantic/unions/src/seed/unions/resources/types/union_with_optional_time.py index 8c2b5f8b580..653addb8142 100644 --- a/seed/pydantic/unions/src/seed/unions/resources/types/union_with_optional_time.py +++ b/seed/pydantic/unions/src/seed/unions/resources/types/union_with_optional_time.py @@ -11,9 +11,9 @@ class UnionWithOptionalTime_Date(UniversalBaseModel): type: typing.Literal["date"] = "date" -class UnionWithOptionalTime_Dateimte(UniversalBaseModel): +class UnionWithOptionalTime_Datetime(UniversalBaseModel): value: typing.Optional[dt.datetime] = None - type: typing.Literal["dateimte"] = "dateimte" + type: typing.Literal["datetime"] = "datetime" -UnionWithOptionalTime = typing.Union[UnionWithOptionalTime_Date, UnionWithOptionalTime_Dateimte] +UnionWithOptionalTime = typing.Union[UnionWithOptionalTime_Date, UnionWithOptionalTime_Datetime] diff --git a/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py b/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py +++ b/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py b/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py +++ b/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py b/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py +++ b/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py b/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py +++ b/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py b/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py +++ b/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py b/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py +++ b/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/alias-extends/README.md b/seed/python-sdk/alias-extends/README.md index fd1bfb29119..c6836102419 100644 --- a/seed/python-sdk/alias-extends/README.md +++ b/seed/python-sdk/alias-extends/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/alias-extends/src/seed/core/http_client.py b/seed/python-sdk/alias-extends/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/alias-extends/src/seed/core/http_client.py +++ b/seed/python-sdk/alias-extends/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/alias-extends/src/seed/core/pydantic_utilities.py b/seed/python-sdk/alias-extends/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/alias-extends/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/alias-extends/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/alias/README.md b/seed/python-sdk/alias/README.md index 1dad92c0b8a..2c1c2ea335c 100644 --- a/seed/python-sdk/alias/README.md +++ b/seed/python-sdk/alias/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/alias/src/seed/core/http_client.py b/seed/python-sdk/alias/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/alias/src/seed/core/http_client.py +++ b/seed/python-sdk/alias/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py b/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/any-auth/README.md b/seed/python-sdk/any-auth/README.md index dd359acab31..2f557fa089f 100644 --- a/seed/python-sdk/any-auth/README.md +++ b/seed/python-sdk/any-auth/README.md @@ -81,10 +81,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/any-auth/src/seed/core/http_client.py b/seed/python-sdk/any-auth/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/any-auth/src/seed/core/http_client.py +++ b/seed/python-sdk/any-auth/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/any-auth/src/seed/core/pydantic_utilities.py b/seed/python-sdk/any-auth/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/any-auth/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/any-auth/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/api-wide-base-path/README.md b/seed/python-sdk/api-wide-base-path/README.md index 88ea0fca6b4..92746b89b41 100644 --- a/seed/python-sdk/api-wide-base-path/README.md +++ b/seed/python-sdk/api-wide-base-path/README.md @@ -79,10 +79,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/api-wide-base-path/src/seed/core/http_client.py b/seed/python-sdk/api-wide-base-path/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/api-wide-base-path/src/seed/core/http_client.py +++ b/seed/python-sdk/api-wide-base-path/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py b/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/audiences/README.md b/seed/python-sdk/audiences/README.md index e1e8c00c9a3..25a46c8320e 100644 --- a/seed/python-sdk/audiences/README.md +++ b/seed/python-sdk/audiences/README.md @@ -79,10 +79,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/audiences/src/seed/core/http_client.py b/seed/python-sdk/audiences/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/audiences/src/seed/core/http_client.py +++ b/seed/python-sdk/audiences/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py b/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/auth-environment-variables/README.md b/seed/python-sdk/auth-environment-variables/README.md index fae340f6e18..ea77e01c30b 100644 --- a/seed/python-sdk/auth-environment-variables/README.md +++ b/seed/python-sdk/auth-environment-variables/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/auth-environment-variables/src/seed/core/http_client.py b/seed/python-sdk/auth-environment-variables/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/auth-environment-variables/src/seed/core/http_client.py +++ b/seed/python-sdk/auth-environment-variables/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/basic-auth-environment-variables/.mock/definition/api.yml b/seed/python-sdk/basic-auth-environment-variables/.mock/definition/api.yml index 828c6eced71..e7268b14768 100644 --- a/seed/python-sdk/basic-auth-environment-variables/.mock/definition/api.yml +++ b/seed/python-sdk/basic-auth-environment-variables/.mock/definition/api.yml @@ -7,7 +7,7 @@ auth-schemes: name: username env: USERNAME password: - name: password + name: accessToken env: PASSWORD error-discrimination: strategy: status-code diff --git a/seed/python-sdk/basic-auth-environment-variables/README.md b/seed/python-sdk/basic-auth-environment-variables/README.md index ecadb40f1c0..0c25ff3c7a5 100644 --- a/seed/python-sdk/basic-auth-environment-variables/README.md +++ b/seed/python-sdk/basic-auth-environment-variables/README.md @@ -24,7 +24,7 @@ from seed import SeedBasicAuthEnvironmentVariables client = SeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) client.basic_auth.post_with_basic_auth( @@ -43,7 +43,7 @@ from seed import AsyncSeedBasicAuthEnvironmentVariables client = AsyncSeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/basic-auth-environment-variables/reference.md b/seed/python-sdk/basic-auth-environment-variables/reference.md index 5e7e3113538..43d5cd45162 100644 --- a/seed/python-sdk/basic-auth-environment-variables/reference.md +++ b/seed/python-sdk/basic-auth-environment-variables/reference.md @@ -31,7 +31,7 @@ from seed import SeedBasicAuthEnvironmentVariables client = SeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) client.basic_auth.get_with_basic_auth() @@ -93,7 +93,7 @@ from seed import SeedBasicAuthEnvironmentVariables client = SeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) client.basic_auth.post_with_basic_auth( diff --git a/seed/python-sdk/basic-auth-environment-variables/resolved-snippet-templates.md b/seed/python-sdk/basic-auth-environment-variables/resolved-snippet-templates.md index 46d6cc66b29..82b22bdd0b5 100644 --- a/seed/python-sdk/basic-auth-environment-variables/resolved-snippet-templates.md +++ b/seed/python-sdk/basic-auth-environment-variables/resolved-snippet-templates.md @@ -1,7 +1,7 @@ ```python from seed import SeedBasicAuthEnvironmentVariables -client = SeedBasicAuthEnvironmentVariables(base_url="https://yourhost.com/path/to/api", username="YOUR_USERNAME",password="YOUR_PASSWORD", ) +client = SeedBasicAuthEnvironmentVariables(base_url="https://yourhost.com/path/to/api", username="YOUR_USERNAME",access_token="YOUR_PASSWORD", ) client.basic_auth.get_with_basic_auth( ) @@ -12,7 +12,7 @@ client.basic_auth.get_with_basic_auth( ```python from seed import SeedBasicAuthEnvironmentVariables -client = SeedBasicAuthEnvironmentVariables(base_url="https://yourhost.com/path/to/api", username="YOUR_USERNAME",password="YOUR_PASSWORD", ) +client = SeedBasicAuthEnvironmentVariables(base_url="https://yourhost.com/path/to/api", username="YOUR_USERNAME",access_token="YOUR_PASSWORD", ) client.basic_auth.post_with_basic_auth( request={"key":"value"} ) diff --git a/seed/python-sdk/basic-auth-environment-variables/snippet-templates.json b/seed/python-sdk/basic-auth-environment-variables/snippet-templates.json index d6c52b420db..2c1c63df339 100644 --- a/seed/python-sdk/basic-auth-environment-variables/snippet-templates.json +++ b/seed/python-sdk/basic-auth-environment-variables/snippet-templates.json @@ -39,7 +39,7 @@ "value": { "imports": [], "isOptional": false, - "templateString": "password=$FERN_INPUT", + "templateString": "access_token=$FERN_INPUT", "templateInputs": [ { "location": "AUTH", @@ -94,7 +94,7 @@ "value": { "imports": [], "isOptional": false, - "templateString": "password=$FERN_INPUT", + "templateString": "access_token=$FERN_INPUT", "templateInputs": [ { "location": "AUTH", @@ -161,7 +161,7 @@ "value": { "imports": [], "isOptional": false, - "templateString": "password=$FERN_INPUT", + "templateString": "access_token=$FERN_INPUT", "templateInputs": [ { "location": "AUTH", @@ -233,7 +233,7 @@ "value": { "imports": [], "isOptional": false, - "templateString": "password=$FERN_INPUT", + "templateString": "access_token=$FERN_INPUT", "templateInputs": [ { "location": "AUTH", diff --git a/seed/python-sdk/basic-auth-environment-variables/snippet.json b/seed/python-sdk/basic-auth-environment-variables/snippet.json index c19108ae1df..676de6b7591 100644 --- a/seed/python-sdk/basic-auth-environment-variables/snippet.json +++ b/seed/python-sdk/basic-auth-environment-variables/snippet.json @@ -9,8 +9,8 @@ "identifier_override": "endpoint_basic-auth.getWithBasicAuth" }, "snippet": { - "sync_client": "from seed import SeedBasicAuthEnvironmentVariables\n\nclient = SeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n password=\"YOUR_PASSWORD\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.basic_auth.get_with_basic_auth()\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedBasicAuthEnvironmentVariables\n\nclient = AsyncSeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n password=\"YOUR_PASSWORD\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.basic_auth.get_with_basic_auth()\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedBasicAuthEnvironmentVariables\n\nclient = SeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n access_token=\"YOUR_ACCESS_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.basic_auth.get_with_basic_auth()\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedBasicAuthEnvironmentVariables\n\nclient = AsyncSeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n access_token=\"YOUR_ACCESS_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.basic_auth.get_with_basic_auth()\n\n\nasyncio.run(main())\n", "type": "python" } }, @@ -22,8 +22,8 @@ "identifier_override": "endpoint_basic-auth.postWithBasicAuth" }, "snippet": { - "sync_client": "from seed import SeedBasicAuthEnvironmentVariables\n\nclient = SeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n password=\"YOUR_PASSWORD\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.basic_auth.post_with_basic_auth(\n request={\"key\": \"value\"},\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedBasicAuthEnvironmentVariables\n\nclient = AsyncSeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n password=\"YOUR_PASSWORD\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.basic_auth.post_with_basic_auth(\n request={\"key\": \"value\"},\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedBasicAuthEnvironmentVariables\n\nclient = SeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n access_token=\"YOUR_ACCESS_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.basic_auth.post_with_basic_auth(\n request={\"key\": \"value\"},\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedBasicAuthEnvironmentVariables\n\nclient = AsyncSeedBasicAuthEnvironmentVariables(\n username=\"YOUR_USERNAME\",\n access_token=\"YOUR_ACCESS_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.basic_auth.post_with_basic_auth(\n request={\"key\": \"value\"},\n )\n\n\nasyncio.run(main())\n", "type": "python" } } diff --git a/seed/python-sdk/basic-auth-environment-variables/src/seed/basic_auth/client.py b/seed/python-sdk/basic-auth-environment-variables/src/seed/basic_auth/client.py index b6502c6afea..6ba33470c91 100644 --- a/seed/python-sdk/basic-auth-environment-variables/src/seed/basic_auth/client.py +++ b/seed/python-sdk/basic-auth-environment-variables/src/seed/basic_auth/client.py @@ -38,7 +38,7 @@ def get_with_basic_auth(self, *, request_options: typing.Optional[RequestOptions client = SeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) client.basic_auth.get_with_basic_auth() @@ -95,7 +95,7 @@ def post_with_basic_auth( client = SeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) client.basic_auth.post_with_basic_auth( @@ -161,7 +161,7 @@ async def get_with_basic_auth(self, *, request_options: typing.Optional[RequestO client = AsyncSeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) @@ -226,7 +226,7 @@ async def post_with_basic_auth( client = AsyncSeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) diff --git a/seed/python-sdk/basic-auth-environment-variables/src/seed/client.py b/seed/python-sdk/basic-auth-environment-variables/src/seed/client.py index 11656b83525..1193134328b 100644 --- a/seed/python-sdk/basic-auth-environment-variables/src/seed/client.py +++ b/seed/python-sdk/basic-auth-environment-variables/src/seed/client.py @@ -20,7 +20,7 @@ class SeedBasicAuthEnvironmentVariables: The base url to use for requests from the client. username : typing.Optional[typing.Union[str, typing.Callable[[], str]]] - password : typing.Optional[typing.Union[str, typing.Callable[[], str]]] + access_token : typing.Optional[typing.Union[str, typing.Callable[[], str]]] timeout : typing.Optional[float] The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced. @@ -36,7 +36,7 @@ class SeedBasicAuthEnvironmentVariables: client = SeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) """ @@ -46,7 +46,7 @@ def __init__( *, base_url: str, username: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("USERNAME"), - password: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("PASSWORD"), + access_token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("PASSWORD"), timeout: typing.Optional[float] = None, follow_redirects: typing.Optional[bool] = True, httpx_client: typing.Optional[httpx.Client] = None, @@ -54,12 +54,12 @@ def __init__( _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None if username is None: raise ApiError(body="The client must be instantiated be either passing in username or setting USERNAME") - if password is None: - raise ApiError(body="The client must be instantiated be either passing in password or setting PASSWORD") + if access_token is None: + raise ApiError(body="The client must be instantiated be either passing in access_token or setting PASSWORD") self._client_wrapper = SyncClientWrapper( base_url=base_url, username=username, - password=password, + access_token=access_token, httpx_client=httpx_client if httpx_client is not None else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects) @@ -80,7 +80,7 @@ class AsyncSeedBasicAuthEnvironmentVariables: The base url to use for requests from the client. username : typing.Optional[typing.Union[str, typing.Callable[[], str]]] - password : typing.Optional[typing.Union[str, typing.Callable[[], str]]] + access_token : typing.Optional[typing.Union[str, typing.Callable[[], str]]] timeout : typing.Optional[float] The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced. @@ -96,7 +96,7 @@ class AsyncSeedBasicAuthEnvironmentVariables: client = AsyncSeedBasicAuthEnvironmentVariables( username="YOUR_USERNAME", - password="YOUR_PASSWORD", + access_token="YOUR_ACCESS_TOKEN", base_url="https://yourhost.com/path/to/api", ) """ @@ -106,7 +106,7 @@ def __init__( *, base_url: str, username: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("USERNAME"), - password: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("PASSWORD"), + access_token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("PASSWORD"), timeout: typing.Optional[float] = None, follow_redirects: typing.Optional[bool] = True, httpx_client: typing.Optional[httpx.AsyncClient] = None, @@ -114,12 +114,12 @@ def __init__( _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None if username is None: raise ApiError(body="The client must be instantiated be either passing in username or setting USERNAME") - if password is None: - raise ApiError(body="The client must be instantiated be either passing in password or setting PASSWORD") + if access_token is None: + raise ApiError(body="The client must be instantiated be either passing in access_token or setting PASSWORD") self._client_wrapper = AsyncClientWrapper( base_url=base_url, username=username, - password=password, + access_token=access_token, httpx_client=httpx_client if httpx_client is not None else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects) diff --git a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/client_wrapper.py b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/client_wrapper.py index 3ed9ab91a6f..95290ae3e1e 100644 --- a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/client_wrapper.py +++ b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/client_wrapper.py @@ -11,12 +11,12 @@ def __init__( self, *, username: typing.Union[str, typing.Callable[[], str]], - password: typing.Union[str, typing.Callable[[], str]], + access_token: typing.Union[str, typing.Callable[[], str]], base_url: str, timeout: typing.Optional[float] = None, ): self._username = username - self._password = password + self._access_token = access_token self._base_url = base_url self._timeout = timeout @@ -26,7 +26,7 @@ def get_headers(self) -> typing.Dict[str, str]: "X-Fern-SDK-Name": "fern_basic-auth-environment-variables", "X-Fern-SDK-Version": "0.0.1", } - headers["Authorization"] = httpx.BasicAuth(self._get_username(), self._get_password())._auth_header + headers["Authorization"] = httpx.BasicAuth(self._get_username(), self._get_access_token())._auth_header return headers def _get_username(self) -> str: @@ -35,11 +35,11 @@ def _get_username(self) -> str: else: return self._username() - def _get_password(self) -> str: - if isinstance(self._password, str): - return self._password + def _get_access_token(self) -> str: + if isinstance(self._access_token, str): + return self._access_token else: - return self._password() + return self._access_token() def get_base_url(self) -> str: return self._base_url @@ -53,12 +53,12 @@ def __init__( self, *, username: typing.Union[str, typing.Callable[[], str]], - password: typing.Union[str, typing.Callable[[], str]], + access_token: typing.Union[str, typing.Callable[[], str]], base_url: str, timeout: typing.Optional[float] = None, httpx_client: httpx.Client, ): - super().__init__(username=username, password=password, base_url=base_url, timeout=timeout) + super().__init__(username=username, access_token=access_token, base_url=base_url, timeout=timeout) self.httpx_client = HttpClient( httpx_client=httpx_client, base_headers=self.get_headers, @@ -72,12 +72,12 @@ def __init__( self, *, username: typing.Union[str, typing.Callable[[], str]], - password: typing.Union[str, typing.Callable[[], str]], + access_token: typing.Union[str, typing.Callable[[], str]], base_url: str, timeout: typing.Optional[float] = None, httpx_client: httpx.AsyncClient, ): - super().__init__(username=username, password=password, base_url=base_url, timeout=timeout) + super().__init__(username=username, access_token=access_token, base_url=base_url, timeout=timeout) self.httpx_client = AsyncHttpClient( httpx_client=httpx_client, base_headers=self.get_headers, diff --git a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/http_client.py b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/http_client.py +++ b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/basic-auth-environment-variables/tests/conftest.py b/seed/python-sdk/basic-auth-environment-variables/tests/conftest.py index 21d22c38055..741948653d9 100644 --- a/seed/python-sdk/basic-auth-environment-variables/tests/conftest.py +++ b/seed/python-sdk/basic-auth-environment-variables/tests/conftest.py @@ -10,7 +10,7 @@ def client() -> SeedBasicAuthEnvironmentVariables: return SeedBasicAuthEnvironmentVariables( username=os.getenv("ENV_USERNAME", "username"), - password=os.getenv("ENV_PASSWORD", "password"), + access_token=os.getenv("ENV_ACCESS_TOKEN", "access_token"), base_url=os.getenv("TESTS_BASE_URL", "base_url"), ) @@ -19,6 +19,6 @@ def client() -> SeedBasicAuthEnvironmentVariables: def async_client() -> AsyncSeedBasicAuthEnvironmentVariables: return AsyncSeedBasicAuthEnvironmentVariables( username=os.getenv("ENV_USERNAME", "username"), - password=os.getenv("ENV_PASSWORD", "password"), + access_token=os.getenv("ENV_ACCESS_TOKEN", "access_token"), base_url=os.getenv("TESTS_BASE_URL", "base_url"), ) diff --git a/seed/python-sdk/basic-auth/README.md b/seed/python-sdk/basic-auth/README.md index dd6d795981c..cf5d25726e4 100644 --- a/seed/python-sdk/basic-auth/README.md +++ b/seed/python-sdk/basic-auth/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/basic-auth/src/seed/core/http_client.py b/seed/python-sdk/basic-auth/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/basic-auth/src/seed/core/http_client.py +++ b/seed/python-sdk/basic-auth/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py b/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/bearer-token-environment-variable/README.md b/seed/python-sdk/bearer-token-environment-variable/README.md index 2d3787763f5..e8a448aa5fa 100644 --- a/seed/python-sdk/bearer-token-environment-variable/README.md +++ b/seed/python-sdk/bearer-token-environment-variable/README.md @@ -71,10 +71,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/bearer-token-environment-variable/src/seed/core/http_client.py b/seed/python-sdk/bearer-token-environment-variable/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/bearer-token-environment-variable/src/seed/core/http_client.py +++ b/seed/python-sdk/bearer-token-environment-variable/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py b/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/bytes/src/seed/core/http_client.py b/seed/python-sdk/bytes/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/bytes/src/seed/core/http_client.py +++ b/seed/python-sdk/bytes/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py b/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/circular-references-advanced/src/seed/core/http_client.py b/seed/python-sdk/circular-references-advanced/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/circular-references-advanced/src/seed/core/http_client.py +++ b/seed/python-sdk/circular-references-advanced/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py b/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/circular-references/src/seed/core/http_client.py b/seed/python-sdk/circular-references/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/circular-references/src/seed/core/http_client.py +++ b/seed/python-sdk/circular-references/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py b/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/code-samples/README.md b/seed/python-sdk/code-samples/README.md index 2c800f61fe9..9b2447c4ad3 100644 --- a/seed/python-sdk/code-samples/README.md +++ b/seed/python-sdk/code-samples/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/code-samples/src/seed/core/http_client.py b/seed/python-sdk/code-samples/src/seed/core/http_client.py index b07401b50eb..fcb1531a0b3 100644 --- a/seed/python-sdk/code-samples/src/seed/core/http_client.py +++ b/seed/python-sdk/code-samples/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py b/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py index c14b4828025..e44f45a5b5c 100644 --- a/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/cross-package-type-names/README.md b/seed/python-sdk/cross-package-type-names/README.md index ee115693d08..56c5857b011 100644 --- a/seed/python-sdk/cross-package-type-names/README.md +++ b/seed/python-sdk/cross-package-type-names/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/cross-package-type-names/src/seed/core/http_client.py b/seed/python-sdk/cross-package-type-names/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/cross-package-type-names/src/seed/core/http_client.py +++ b/seed/python-sdk/cross-package-type-names/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/cross-package-type-names/src/seed/core/pydantic_utilities.py b/seed/python-sdk/cross-package-type-names/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/cross-package-type-names/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/cross-package-type-names/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/custom-auth/README.md b/seed/python-sdk/custom-auth/README.md index 284c6625d05..8e9e4478104 100644 --- a/seed/python-sdk/custom-auth/README.md +++ b/seed/python-sdk/custom-auth/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/custom-auth/src/seed/core/http_client.py b/seed/python-sdk/custom-auth/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/custom-auth/src/seed/core/http_client.py +++ b/seed/python-sdk/custom-auth/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py b/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/enum/no-custom-config/README.md b/seed/python-sdk/enum/no-custom-config/README.md index 73c99b6e8b7..040ef1a9e83 100644 --- a/seed/python-sdk/enum/no-custom-config/README.md +++ b/seed/python-sdk/enum/no-custom-config/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/enum/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/enum/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/enum/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/enum/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/enum/real-enum-forward-compat/README.md b/seed/python-sdk/enum/real-enum-forward-compat/README.md index 7ecd5bb0ac4..7277a97b81a 100644 --- a/seed/python-sdk/enum/real-enum-forward-compat/README.md +++ b/seed/python-sdk/enum/real-enum-forward-compat/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/http_client.py b/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/http_client.py +++ b/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/pydantic_utilities.py b/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/enum/real-enum-forward-compat/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/enum/real-enum/README.md b/seed/python-sdk/enum/real-enum/README.md index 7ecd5bb0ac4..7277a97b81a 100644 --- a/seed/python-sdk/enum/real-enum/README.md +++ b/seed/python-sdk/enum/real-enum/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/enum/real-enum/src/seed/core/http_client.py b/seed/python-sdk/enum/real-enum/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/enum/real-enum/src/seed/core/http_client.py +++ b/seed/python-sdk/enum/real-enum/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/enum/real-enum/src/seed/core/pydantic_utilities.py b/seed/python-sdk/enum/real-enum/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/enum/real-enum/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/enum/real-enum/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/enum/strenum/README.md b/seed/python-sdk/enum/strenum/README.md index 73c99b6e8b7..040ef1a9e83 100644 --- a/seed/python-sdk/enum/strenum/README.md +++ b/seed/python-sdk/enum/strenum/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/enum/strenum/src/seed/core/http_client.py b/seed/python-sdk/enum/strenum/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/enum/strenum/src/seed/core/http_client.py +++ b/seed/python-sdk/enum/strenum/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py b/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/error-property/README.md b/seed/python-sdk/error-property/README.md index 4f3d171f053..314a6c11bf5 100644 --- a/seed/python-sdk/error-property/README.md +++ b/seed/python-sdk/error-property/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/error-property/src/seed/core/http_client.py b/seed/python-sdk/error-property/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/error-property/src/seed/core/http_client.py +++ b/seed/python-sdk/error-property/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py b/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/examples/client-filename/README.md b/seed/python-sdk/examples/client-filename/README.md index 781915b668a..3b75f9aaa71 100644 --- a/seed/python-sdk/examples/client-filename/README.md +++ b/seed/python-sdk/examples/client-filename/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/examples/client-filename/src/seed/core/http_client.py b/seed/python-sdk/examples/client-filename/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/examples/client-filename/src/seed/core/http_client.py +++ b/seed/python-sdk/examples/client-filename/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py b/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/examples/no-custom-config/README.md b/seed/python-sdk/examples/no-custom-config/README.md index cad5974b19b..3b23e136e79 100644 --- a/seed/python-sdk/examples/no-custom-config/README.md +++ b/seed/python-sdk/examples/no-custom-config/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/examples/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/examples/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/examples/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/examples/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/examples/readme/README.md b/seed/python-sdk/examples/readme/README.md index d3a896e187e..06589b548b1 100644 --- a/seed/python-sdk/examples/readme/README.md +++ b/seed/python-sdk/examples/readme/README.md @@ -126,10 +126,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/examples/readme/src/seed/core/http_client.py b/seed/python-sdk/examples/readme/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/examples/readme/src/seed/core/http_client.py +++ b/seed/python-sdk/examples/readme/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py b/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/aliases_with_validation/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/aliases_with_validation/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/README.md b/seed/python-sdk/exhaustive/aliases_with_validation/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/README.md +++ b/seed/python-sdk/exhaustive/aliases_with_validation/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/reference.md b/seed/python-sdk/exhaustive/aliases_with_validation/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/reference.md +++ b/seed/python-sdk/exhaustive/aliases_with_validation/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/aliases_with_validation/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/aliases_with_validation/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/snippet-templates.json b/seed/python-sdk/exhaustive/aliases_with_validation/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/snippet-templates.json +++ b/seed/python-sdk/exhaustive/aliases_with_validation/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/snippet.json b/seed/python-sdk/exhaustive/aliases_with_validation/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/snippet.json +++ b/seed/python-sdk/exhaustive/aliases_with_validation/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/aliases_with_validation/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/aliases_with_validation/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/aliases_with_validation/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/aliases_with_validation/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/aliases_with_validation/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/aliases_without_validation/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/aliases_without_validation/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/README.md b/seed/python-sdk/exhaustive/aliases_without_validation/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/README.md +++ b/seed/python-sdk/exhaustive/aliases_without_validation/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/reference.md b/seed/python-sdk/exhaustive/aliases_without_validation/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/reference.md +++ b/seed/python-sdk/exhaustive/aliases_without_validation/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/aliases_without_validation/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/aliases_without_validation/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/snippet-templates.json b/seed/python-sdk/exhaustive/aliases_without_validation/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/snippet-templates.json +++ b/seed/python-sdk/exhaustive/aliases_without_validation/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/snippet.json b/seed/python-sdk/exhaustive/aliases_without_validation/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/snippet.json +++ b/seed/python-sdk/exhaustive/aliases_without_validation/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/pydantic_utilities.py index bbe1de41431..6cda82ecdfb 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/core/pydantic_utilities.py @@ -80,7 +80,7 @@ class Config: smart_union = True allow_population_by_field_name = True json_encoders = {dt.datetime: serialize_datetime} - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces = () def json(self, **kwargs: typing.Any) -> str: @@ -99,7 +99,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/endpoints/params/client.py index 893ba059732..6a4af7bea48 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/aliases_without_validation/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/aliases_without_validation/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/aliases_without_validation/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/aliases_without_validation/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/aliases_without_validation/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/deps_with_min_python_version/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/README.md b/seed/python-sdk/exhaustive/deps_with_min_python_version/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/README.md +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/reference.md b/seed/python-sdk/exhaustive/deps_with_min_python_version/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/reference.md +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/deps_with_min_python_version/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet-templates.json b/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet-templates.json +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet.json b/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet.json +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/deps_with_min_python_version/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/extra_dependencies/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/extra_dependencies/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/extra_dependencies/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/extra_dependencies/README.md b/seed/python-sdk/exhaustive/extra_dependencies/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/README.md +++ b/seed/python-sdk/exhaustive/extra_dependencies/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/extra_dependencies/reference.md b/seed/python-sdk/exhaustive/extra_dependencies/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/reference.md +++ b/seed/python-sdk/exhaustive/extra_dependencies/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/extra_dependencies/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/extra_dependencies/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/extra_dependencies/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/extra_dependencies/snippet-templates.json b/seed/python-sdk/exhaustive/extra_dependencies/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/snippet-templates.json +++ b/seed/python-sdk/exhaustive/extra_dependencies/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/extra_dependencies/snippet.json b/seed/python-sdk/exhaustive/extra_dependencies/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/snippet.json +++ b/seed/python-sdk/exhaustive/extra_dependencies/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/extra_dependencies/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/extra_dependencies/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/extra_dependencies/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/extra_dev_dependencies/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/README.md b/seed/python-sdk/exhaustive/extra_dev_dependencies/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/README.md +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/reference.md b/seed/python-sdk/exhaustive/extra_dev_dependencies/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/reference.md +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/extra_dev_dependencies/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet-templates.json b/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet-templates.json +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet.json b/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet.json +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/extra_dev_dependencies/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/five-second-timeout/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/five-second-timeout/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/five-second-timeout/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/five-second-timeout/README.md b/seed/python-sdk/exhaustive/five-second-timeout/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/README.md +++ b/seed/python-sdk/exhaustive/five-second-timeout/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/five-second-timeout/reference.md b/seed/python-sdk/exhaustive/five-second-timeout/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/reference.md +++ b/seed/python-sdk/exhaustive/five-second-timeout/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/five-second-timeout/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/five-second-timeout/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/five-second-timeout/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/five-second-timeout/snippet-templates.json b/seed/python-sdk/exhaustive/five-second-timeout/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/snippet-templates.json +++ b/seed/python-sdk/exhaustive/five-second-timeout/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/five-second-timeout/snippet.json b/seed/python-sdk/exhaustive/five-second-timeout/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/snippet.json +++ b/seed/python-sdk/exhaustive/five-second-timeout/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/five-second-timeout/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/five-second-timeout/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/five-second-timeout/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/follow_redirects_by_default/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/README.md b/seed/python-sdk/exhaustive/follow_redirects_by_default/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/README.md +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/reference.md b/seed/python-sdk/exhaustive/follow_redirects_by_default/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/reference.md +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/follow_redirects_by_default/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet-templates.json b/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet-templates.json +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet.json b/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet.json +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/follow_redirects_by_default/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/improved_imports/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/improved_imports/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/improved_imports/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/improved_imports/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/improved_imports/README.md b/seed/python-sdk/exhaustive/improved_imports/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/improved_imports/README.md +++ b/seed/python-sdk/exhaustive/improved_imports/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/improved_imports/reference.md b/seed/python-sdk/exhaustive/improved_imports/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/improved_imports/reference.md +++ b/seed/python-sdk/exhaustive/improved_imports/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/improved_imports/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/improved_imports/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/improved_imports/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/improved_imports/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/improved_imports/snippet-templates.json b/seed/python-sdk/exhaustive/improved_imports/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/improved_imports/snippet-templates.json +++ b/seed/python-sdk/exhaustive/improved_imports/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/improved_imports/snippet.json b/seed/python-sdk/exhaustive/improved_imports/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/improved_imports/snippet.json +++ b/seed/python-sdk/exhaustive/improved_imports/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/improved_imports/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/improved_imports/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/improved_imports/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/improved_imports/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/improved_imports/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/improved_imports/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/improved_imports/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/improved_imports/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/improved_imports/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/improved_imports/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/improved_imports/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/improved_imports/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/infinite-timeout/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/infinite-timeout/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/infinite-timeout/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/infinite-timeout/README.md b/seed/python-sdk/exhaustive/infinite-timeout/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/README.md +++ b/seed/python-sdk/exhaustive/infinite-timeout/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/infinite-timeout/reference.md b/seed/python-sdk/exhaustive/infinite-timeout/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/reference.md +++ b/seed/python-sdk/exhaustive/infinite-timeout/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/infinite-timeout/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/infinite-timeout/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/infinite-timeout/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/infinite-timeout/snippet-templates.json b/seed/python-sdk/exhaustive/infinite-timeout/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/snippet-templates.json +++ b/seed/python-sdk/exhaustive/infinite-timeout/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/infinite-timeout/snippet.json b/seed/python-sdk/exhaustive/infinite-timeout/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/snippet.json +++ b/seed/python-sdk/exhaustive/infinite-timeout/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/infinite-timeout/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/infinite-timeout/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/infinite-timeout/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/inline_request_params/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/inline_request_params/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/inline_request_params/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/inline_request_params/README.md b/seed/python-sdk/exhaustive/inline_request_params/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/README.md +++ b/seed/python-sdk/exhaustive/inline_request_params/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/inline_request_params/reference.md b/seed/python-sdk/exhaustive/inline_request_params/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/reference.md +++ b/seed/python-sdk/exhaustive/inline_request_params/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/inline_request_params/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/inline_request_params/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/inline_request_params/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/inline_request_params/snippet-templates.json b/seed/python-sdk/exhaustive/inline_request_params/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/snippet-templates.json +++ b/seed/python-sdk/exhaustive/inline_request_params/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/inline_request_params/snippet.json b/seed/python-sdk/exhaustive/inline_request_params/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/snippet.json +++ b/seed/python-sdk/exhaustive/inline_request_params/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/inline_request_params/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/inline_request_params/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/inline_request_params/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/inline_request_params/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/inline_request_params/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/inline_request_params/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/no-custom-config/README.md b/seed/python-sdk/exhaustive/no-custom-config/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/README.md +++ b/seed/python-sdk/exhaustive/no-custom-config/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/no-custom-config/reference.md b/seed/python-sdk/exhaustive/no-custom-config/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/reference.md +++ b/seed/python-sdk/exhaustive/no-custom-config/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/no-custom-config/snippet-templates.json b/seed/python-sdk/exhaustive/no-custom-config/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/snippet-templates.json +++ b/seed/python-sdk/exhaustive/no-custom-config/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/no-custom-config/snippet.json b/seed/python-sdk/exhaustive/no-custom-config/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/snippet.json +++ b/seed/python-sdk/exhaustive/no-custom-config/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/no-custom-config/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/no-custom-config/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/no-custom-config/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/no-custom-config/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/no-custom-config/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/no-custom-config/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/pydantic-extra-fields/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/README.md b/seed/python-sdk/exhaustive/pydantic-extra-fields/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/README.md +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/reference.md b/seed/python-sdk/exhaustive/pydantic-extra-fields/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/reference.md +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/pydantic-extra-fields/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet-templates.json b/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet-templates.json +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet.json b/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet.json +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/pydantic-extra-fields/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/README.md b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/README.md +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/reference.md b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/reference.md +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet-templates.json b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet-templates.json +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet.json b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet.json +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-with-utils/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-with-utils/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/README.md b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/README.md +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/reference.md b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/reference.md +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet-templates.json b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet-templates.json +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet.json b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet.json +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1-wrapped/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/pydantic-v1-wrapped/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/pydantic-v1/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/pydantic-v1/README.md b/seed/python-sdk/exhaustive/pydantic-v1/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/README.md +++ b/seed/python-sdk/exhaustive/pydantic-v1/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/pydantic-v1/reference.md b/seed/python-sdk/exhaustive/pydantic-v1/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/reference.md +++ b/seed/python-sdk/exhaustive/pydantic-v1/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/pydantic-v1/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/pydantic-v1/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/pydantic-v1/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/pydantic-v1/snippet-templates.json b/seed/python-sdk/exhaustive/pydantic-v1/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/snippet-templates.json +++ b/seed/python-sdk/exhaustive/pydantic-v1/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/pydantic-v1/snippet.json b/seed/python-sdk/exhaustive/pydantic-v1/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/snippet.json +++ b/seed/python-sdk/exhaustive/pydantic-v1/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/pydantic-v1/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/pydantic-v1/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/pydantic-v1/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/pyproject_extras/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/pyproject_extras/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/pyproject_extras/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/pyproject_extras/README.md b/seed/python-sdk/exhaustive/pyproject_extras/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/README.md +++ b/seed/python-sdk/exhaustive/pyproject_extras/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/pyproject_extras/reference.md b/seed/python-sdk/exhaustive/pyproject_extras/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/reference.md +++ b/seed/python-sdk/exhaustive/pyproject_extras/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/pyproject_extras/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/pyproject_extras/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/pyproject_extras/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/pyproject_extras/snippet-templates.json b/seed/python-sdk/exhaustive/pyproject_extras/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/snippet-templates.json +++ b/seed/python-sdk/exhaustive/pyproject_extras/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/pyproject_extras/snippet.json b/seed/python-sdk/exhaustive/pyproject_extras/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/snippet.json +++ b/seed/python-sdk/exhaustive/pyproject_extras/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pyproject_extras/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/pyproject_extras/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/pyproject_extras/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/pyproject_extras/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/pyproject_extras/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/pyproject_extras/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/pyproject_extras/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/pyproject_extras/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/skip-pydantic-validation/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/README.md b/seed/python-sdk/exhaustive/skip-pydantic-validation/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/README.md +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/reference.md b/seed/python-sdk/exhaustive/skip-pydantic-validation/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/reference.md +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/skip-pydantic-validation/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet-templates.json b/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet-templates.json +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet.json b/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet.json +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/endpoints/params/client.py index 893ba059732..6a4af7bea48 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/skip-pydantic-validation/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/typeddict_requests/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/typeddict_requests/.mock/definition/endpoints/params.yml index 7766547ad79..e9e6435ab0f 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/typeddict_requests/.mock/definition/endpoints/params.yml @@ -30,7 +30,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/typeddict_requests/README.md b/seed/python-sdk/exhaustive/typeddict_requests/README.md index aea3f9f4ba5..cc1fb9ae882 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/README.md +++ b/seed/python-sdk/exhaustive/typeddict_requests/README.md @@ -71,10 +71,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/typeddict_requests/reference.md b/seed/python-sdk/exhaustive/typeddict_requests/reference.md index b10ff3586b9..4b352245064 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/reference.md +++ b/seed/python-sdk/exhaustive/typeddict_requests/reference.md @@ -37,8 +37,8 @@ client.endpoints.container.get_and_return_list_of_primitives(
-**request:** `typing.Sequence[str]` - +**request:** `typing.Sequence[str]` +
@@ -46,7 +46,7 @@ client.endpoints.container.get_and_return_list_of_primitives(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -94,8 +94,8 @@ client.endpoints.container.get_and_return_list_of_objects(
-**request:** `typing.Sequence[ObjectWithRequiredFieldParams]` - +**request:** `typing.Sequence[ObjectWithRequiredFieldParams]` +
@@ -103,7 +103,7 @@ client.endpoints.container.get_and_return_list_of_objects(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -151,8 +151,8 @@ client.endpoints.container.get_and_return_set_of_primitives(
-**request:** `typing.Set[str]` - +**request:** `typing.Set[str]` +
@@ -160,7 +160,7 @@ client.endpoints.container.get_and_return_set_of_primitives(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -208,8 +208,8 @@ client.endpoints.container.get_and_return_set_of_objects(
-**request:** `typing.Sequence[ObjectWithRequiredFieldParams]` - +**request:** `typing.Sequence[ObjectWithRequiredFieldParams]` +
@@ -217,7 +217,7 @@ client.endpoints.container.get_and_return_set_of_objects(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -265,8 +265,8 @@ client.endpoints.container.get_and_return_map_prim_to_prim(
-**request:** `typing.Dict[str, str]` - +**request:** `typing.Dict[str, str]` +
@@ -274,7 +274,7 @@ client.endpoints.container.get_and_return_map_prim_to_prim(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -322,8 +322,8 @@ client.endpoints.container.get_and_return_map_of_prim_to_object(
-**request:** `typing.Dict[str, ObjectWithRequiredFieldParams]` - +**request:** `typing.Dict[str, ObjectWithRequiredFieldParams]` +
@@ -331,7 +331,7 @@ client.endpoints.container.get_and_return_map_of_prim_to_object(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -379,8 +379,8 @@ client.endpoints.container.get_and_return_optional(
-**request:** `typing.Optional[ObjectWithRequiredFieldParams]` - +**request:** `typing.Optional[ObjectWithRequiredFieldParams]` +
@@ -388,7 +388,7 @@ client.endpoints.container.get_and_return_optional(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -437,8 +437,8 @@ client.endpoints.enum.get_and_return_enum(
-**request:** `WeatherReport` - +**request:** `WeatherReport` +
@@ -446,7 +446,7 @@ client.endpoints.enum.get_and_return_enum(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -495,8 +495,8 @@ client.endpoints.http_methods.test_get(
-**id:** `str` - +**id:** `str` +
@@ -504,7 +504,7 @@ client.endpoints.http_methods.test_get(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -552,8 +552,8 @@ client.endpoints.http_methods.test_post(
-**string:** `str` - +**string:** `str` +
@@ -561,7 +561,7 @@ client.endpoints.http_methods.test_post(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -610,16 +610,16 @@ client.endpoints.http_methods.test_put(
-**id:** `str` - +**id:** `str` +
-**string:** `str` - +**string:** `str` +
@@ -627,7 +627,7 @@ client.endpoints.http_methods.test_put(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -697,8 +697,8 @@ client.endpoints.http_methods.test_patch(
-**id:** `str` - +**id:** `str` +
@@ -706,103 +706,103 @@ client.endpoints.http_methods.test_patch(
**string:** `typing.Optional[str]` — This is a rather long descriptor of this single field in a more complex type. If you ask me I think this is a pretty good description for this field all things considered. - +
-**integer:** `typing.Optional[int]` - +**integer:** `typing.Optional[int]` +
-**long_:** `typing.Optional[int]` - +**long_:** `typing.Optional[int]` +
-**double:** `typing.Optional[float]` - +**double:** `typing.Optional[float]` +
-**bool_:** `typing.Optional[bool]` - +**bool_:** `typing.Optional[bool]` +
-**datetime:** `typing.Optional[dt.datetime]` - +**datetime:** `typing.Optional[dt.datetime]` +
-**date:** `typing.Optional[dt.date]` - +**date:** `typing.Optional[dt.date]` +
-**uuid_:** `typing.Optional[uuid.UUID]` - +**uuid_:** `typing.Optional[uuid.UUID]` +
-**base_64:** `typing.Optional[str]` - +**base_64:** `typing.Optional[str]` +
-**list_:** `typing.Optional[typing.Sequence[str]]` - +**list_:** `typing.Optional[typing.Sequence[str]]` +
-**set_:** `typing.Optional[typing.Set[str]]` - +**set_:** `typing.Optional[typing.Set[str]]` +
-**map_:** `typing.Optional[typing.Dict[int, str]]` - +**map_:** `typing.Optional[typing.Dict[int, str]]` +
-**bigint:** `typing.Optional[str]` - +**bigint:** `typing.Optional[str]` +
@@ -810,7 +810,7 @@ client.endpoints.http_methods.test_patch(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -858,8 +858,8 @@ client.endpoints.http_methods.test_delete(
-**id:** `str` - +**id:** `str` +
@@ -867,7 +867,7 @@ client.endpoints.http_methods.test_delete(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -938,103 +938,103 @@ client.endpoints.object.get_and_return_with_optional_field(
**string:** `typing.Optional[str]` — This is a rather long descriptor of this single field in a more complex type. If you ask me I think this is a pretty good description for this field all things considered. - +
-**integer:** `typing.Optional[int]` - +**integer:** `typing.Optional[int]` +
-**long_:** `typing.Optional[int]` - +**long_:** `typing.Optional[int]` +
-**double:** `typing.Optional[float]` - +**double:** `typing.Optional[float]` +
-**bool_:** `typing.Optional[bool]` - +**bool_:** `typing.Optional[bool]` +
-**datetime:** `typing.Optional[dt.datetime]` - +**datetime:** `typing.Optional[dt.datetime]` +
-**date:** `typing.Optional[dt.date]` - +**date:** `typing.Optional[dt.date]` +
-**uuid_:** `typing.Optional[uuid.UUID]` - +**uuid_:** `typing.Optional[uuid.UUID]` +
-**base_64:** `typing.Optional[str]` - +**base_64:** `typing.Optional[str]` +
-**list_:** `typing.Optional[typing.Sequence[str]]` - +**list_:** `typing.Optional[typing.Sequence[str]]` +
-**set_:** `typing.Optional[typing.Set[str]]` - +**set_:** `typing.Optional[typing.Set[str]]` +
-**map_:** `typing.Optional[typing.Dict[int, str]]` - +**map_:** `typing.Optional[typing.Dict[int, str]]` +
-**bigint:** `typing.Optional[str]` - +**bigint:** `typing.Optional[str]` +
@@ -1042,7 +1042,7 @@ client.endpoints.object.get_and_return_with_optional_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1090,8 +1090,8 @@ client.endpoints.object.get_and_return_with_required_field(
-**string:** `str` - +**string:** `str` +
@@ -1099,7 +1099,7 @@ client.endpoints.object.get_and_return_with_required_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1147,8 +1147,8 @@ client.endpoints.object.get_and_return_with_map_of_map(
-**map_:** `typing.Dict[str, typing.Dict[str, str]]` - +**map_:** `typing.Dict[str, typing.Dict[str, str]]` +
@@ -1156,7 +1156,7 @@ client.endpoints.object.get_and_return_with_map_of_map(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1228,16 +1228,16 @@ client.endpoints.object.get_and_return_nested_with_optional_field(
-**string:** `typing.Optional[str]` - +**string:** `typing.Optional[str]` +
-**nested_object:** `typing.Optional[ObjectWithOptionalFieldParams]` - +**nested_object:** `typing.Optional[ObjectWithOptionalFieldParams]` +
@@ -1245,7 +1245,7 @@ client.endpoints.object.get_and_return_nested_with_optional_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1318,24 +1318,24 @@ client.endpoints.object.get_and_return_nested_with_required_field(
-**string_:** `str` - +**string_:** `str` +
-**string:** `str` - +**string:** `str` +
-**nested_object:** `ObjectWithOptionalFieldParams` - +**nested_object:** `ObjectWithOptionalFieldParams` +
@@ -1343,7 +1343,7 @@ client.endpoints.object.get_and_return_nested_with_required_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1419,8 +1419,8 @@ client.endpoints.object.get_and_return_nested_with_required_field_as_list(
-**request:** `typing.Sequence[NestedObjectWithRequiredFieldParams]` - +**request:** `typing.Sequence[NestedObjectWithRequiredFieldParams]` +
@@ -1428,7 +1428,7 @@ client.endpoints.object.get_and_return_nested_with_required_field_as_list(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1491,8 +1491,8 @@ client.endpoints.params.get_with_path(
-**param:** `str` - +**param:** `str` +
@@ -1500,7 +1500,7 @@ client.endpoints.params.get_with_path(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1563,16 +1563,16 @@ client.endpoints.params.get_with_query(
-**query:** `str` - +**query:** `str` +
-**number:** `int` - +**number:** `int` +
@@ -1580,7 +1580,7 @@ client.endpoints.params.get_with_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1626,7 +1626,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) ``` @@ -1643,16 +1643,16 @@ client.endpoints.params.get_with_allow_multiple_query(
-**query:** `typing.Union[str, typing.Sequence[str]]` - +**query:** `typing.Union[str, typing.Sequence[str]]` +
-**numer:** `typing.Union[int, typing.Sequence[int]]` - +**number:** `typing.Union[int, typing.Sequence[int]]` +
@@ -1660,7 +1660,7 @@ client.endpoints.params.get_with_allow_multiple_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1723,16 +1723,16 @@ client.endpoints.params.get_with_path_and_query(
-**param:** `str` - +**param:** `str` +
-**query:** `str` - +**query:** `str` +
@@ -1740,7 +1740,7 @@ client.endpoints.params.get_with_path_and_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1803,16 +1803,16 @@ client.endpoints.params.modify_with_path(
-**param:** `str` - +**param:** `str` +
-**request:** `str` - +**request:** `str` +
@@ -1820,7 +1820,7 @@ client.endpoints.params.modify_with_path(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1869,8 +1869,8 @@ client.endpoints.primitive.get_and_return_string(
-**request:** `str` - +**request:** `str` +
@@ -1878,7 +1878,7 @@ client.endpoints.primitive.get_and_return_string(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1926,8 +1926,8 @@ client.endpoints.primitive.get_and_return_int(
-**request:** `int` - +**request:** `int` +
@@ -1935,7 +1935,7 @@ client.endpoints.primitive.get_and_return_int(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1983,8 +1983,8 @@ client.endpoints.primitive.get_and_return_long(
-**request:** `int` - +**request:** `int` +
@@ -1992,7 +1992,7 @@ client.endpoints.primitive.get_and_return_long(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2040,8 +2040,8 @@ client.endpoints.primitive.get_and_return_double(
-**request:** `float` - +**request:** `float` +
@@ -2049,7 +2049,7 @@ client.endpoints.primitive.get_and_return_double(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2097,8 +2097,8 @@ client.endpoints.primitive.get_and_return_bool(
-**request:** `bool` - +**request:** `bool` +
@@ -2106,7 +2106,7 @@ client.endpoints.primitive.get_and_return_bool(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2158,8 +2158,8 @@ client.endpoints.primitive.get_and_return_datetime(
-**request:** `dt.datetime` - +**request:** `dt.datetime` +
@@ -2167,7 +2167,7 @@ client.endpoints.primitive.get_and_return_datetime(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2219,8 +2219,8 @@ client.endpoints.primitive.get_and_return_date(
-**request:** `dt.date` - +**request:** `dt.date` +
@@ -2228,7 +2228,7 @@ client.endpoints.primitive.get_and_return_date(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2280,8 +2280,8 @@ client.endpoints.primitive.get_and_return_uuid(
-**request:** `uuid.UUID` - +**request:** `uuid.UUID` +
@@ -2289,7 +2289,7 @@ client.endpoints.primitive.get_and_return_uuid(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2337,8 +2337,8 @@ client.endpoints.primitive.get_and_return_base_64(
-**request:** `str` - +**request:** `str` +
@@ -2346,7 +2346,7 @@ client.endpoints.primitive.get_and_return_base_64(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2395,8 +2395,8 @@ client.endpoints.union.get_and_return_union(
-**request:** `AnimalParams` - +**request:** `AnimalParams` +
@@ -2404,7 +2404,7 @@ client.endpoints.union.get_and_return_union(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2492,24 +2492,24 @@ client.inlined_requests.post_with_object_bodyand_response(
-**string:** `str` - +**string:** `str` +
-**integer:** `int` - +**integer:** `int` +
-**nested_object:** `ObjectWithOptionalFieldParams` - +**nested_object:** `ObjectWithOptionalFieldParams` +
@@ -2517,7 +2517,7 @@ client.inlined_requests.post_with_object_bodyand_response(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2580,8 +2580,8 @@ client.no_auth.post_with_no_auth(
-**request:** `typing.Any` - +**request:** `typing.Any` +
@@ -2589,7 +2589,7 @@ client.no_auth.post_with_no_auth(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2637,7 +2637,7 @@ client.no_req_body.get_with_no_request_body()
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2684,7 +2684,7 @@ client.no_req_body.post_with_no_request_body()
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2735,24 +2735,24 @@ client.req_with_headers.get_with_custom_header(
-**x_test_service_header:** `str` - +**x_test_service_header:** `str` +
-**x_test_endpoint_header:** `str` - +**x_test_endpoint_header:** `str` +
-**request:** `str` - +**request:** `str` +
@@ -2760,7 +2760,7 @@ client.req_with_headers.get_with_custom_header(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
diff --git a/seed/python-sdk/exhaustive/typeddict_requests/snippet-templates.json b/seed/python-sdk/exhaustive/typeddict_requests/snippet-templates.json index c4f5946e5f5..74691cfe1b5 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/snippet-templates.json +++ b/seed/python-sdk/exhaustive/typeddict_requests/snippet-templates.json @@ -5384,11 +5384,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -5456,11 +5456,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/typeddict_requests/snippet.json b/seed/python-sdk/exhaustive/typeddict_requests/snippet.json index 87b8db37147..35577af9345 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/snippet.json +++ b/seed/python-sdk/exhaustive/typeddict_requests/snippet.json @@ -282,8 +282,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/typeddict_requests/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/typeddict_requests/src/seed/core/http_client.py index 9333d8a7f15..9554b1b48d5 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/typeddict_requests/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/typeddict_requests/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/typeddict_requests/src/seed/endpoints/params/client.py index 5cd7ceef42a..a066c9e6231 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/typeddict_requests/src/seed/endpoints/params/client.py @@ -102,7 +102,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -112,7 +112,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -131,11 +131,11 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( - "params", method="GET", params={"query": query, "numer": numer}, request_options=request_options + "params", method="GET", params={"query": query, "number": number}, request_options=request_options ) try: if 200 <= _response.status_code < 300: @@ -344,7 +344,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -354,7 +354,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -378,14 +378,14 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) asyncio.run(main()) """ _response = await self._client_wrapper.httpx_client.request( - "params", method="GET", params={"query": query, "numer": numer}, request_options=request_options + "params", method="GET", params={"query": query, "number": number}, request_options=request_options ) try: if 200 <= _response.status_code < 300: diff --git a/seed/python-sdk/exhaustive/typeddict_requests/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/typeddict_requests/tests/endpoints/test_params.py index 163d7b9161d..09e992c16a9 100644 --- a/seed/python-sdk/exhaustive/typeddict_requests/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/typeddict_requests/tests/endpoints/test_params.py @@ -26,9 +26,9 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value - assert client.endpoints.params.get_with_allow_multiple_query(query="string", numer=1) is None # type: ignore[func-returns-value] + assert client.endpoints.params.get_with_allow_multiple_query(query="string", number=1) is None # type: ignore[func-returns-value] - assert await async_client.endpoints.params.get_with_allow_multiple_query(query="string", numer=1) is None # type: ignore[func-returns-value] + assert await async_client.endpoints.params.get_with_allow_multiple_query(query="string", number=1) is None # type: ignore[func-returns-value] async def test_get_with_path_and_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: diff --git a/seed/python-sdk/exhaustive/union-utils/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/union-utils/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/python-sdk/exhaustive/union-utils/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/union-utils/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/union-utils/README.md b/seed/python-sdk/exhaustive/union-utils/README.md index 1088758f90b..f96c7158811 100644 --- a/seed/python-sdk/exhaustive/union-utils/README.md +++ b/seed/python-sdk/exhaustive/union-utils/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/union-utils/reference.md b/seed/python-sdk/exhaustive/union-utils/reference.md index 2ac710364c0..682cd35efd0 100644 --- a/seed/python-sdk/exhaustive/union-utils/reference.md +++ b/seed/python-sdk/exhaustive/union-utils/reference.md @@ -2097,7 +2097,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) ``` @@ -2122,7 +2122,7 @@ client.endpoints.params.get_with_allow_multiple_query(
-**numer:** `typing.Union[int, typing.Sequence[int]]` +**number:** `typing.Union[int, typing.Sequence[int]]`
diff --git a/seed/python-sdk/exhaustive/union-utils/resolved-snippet-templates.md b/seed/python-sdk/exhaustive/union-utils/resolved-snippet-templates.md index badfb83634d..2bc68c32d3e 100644 --- a/seed/python-sdk/exhaustive/union-utils/resolved-snippet-templates.md +++ b/seed/python-sdk/exhaustive/union-utils/resolved-snippet-templates.md @@ -438,7 +438,7 @@ from seed import SeedExhaustive client = SeedExhaustive(base_url="https://yourhost.com/path/to/api", token="YOUR_TOKEN", ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1 + number=1 ) ``` diff --git a/seed/python-sdk/exhaustive/union-utils/snippet-templates.json b/seed/python-sdk/exhaustive/union-utils/snippet-templates.json index 36e4596b36e..b3d0578ddef 100644 --- a/seed/python-sdk/exhaustive/union-utils/snippet-templates.json +++ b/seed/python-sdk/exhaustive/union-utils/snippet-templates.json @@ -6632,11 +6632,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -6704,11 +6704,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/union-utils/snippet.json b/seed/python-sdk/exhaustive/union-utils/snippet.json index 6cc281f6cf4..2027fd4cf9f 100644 --- a/seed/python-sdk/exhaustive/union-utils/snippet.json +++ b/seed/python-sdk/exhaustive/union-utils/snippet.json @@ -321,8 +321,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"query\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/union-utils/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/union-utils/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/exhaustive/union-utils/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/union-utils/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/exhaustive/union-utils/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/union-utils/src/seed/endpoints/params/client.py index 5dac48638e7..4ee27d7ca9d 100644 --- a/seed/python-sdk/exhaustive/union-utils/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/union-utils/src/seed/endpoints/params/client.py @@ -162,7 +162,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -172,7 +172,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -191,7 +191,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -199,7 +199,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -587,7 +587,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -597,7 +597,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -621,7 +621,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="query", - numer=1, + number=1, ) @@ -632,7 +632,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/union-utils/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/union-utils/tests/endpoints/test_params.py index b72e871b18f..4bc333b9e9e 100644 --- a/seed/python-sdk/exhaustive/union-utils/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/union-utils/tests/endpoints/test_params.py @@ -42,12 +42,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="query", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="query", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/without_aliases_with_validation/.mock/definition/endpoints/params.yml index 7766547ad79..e9e6435ab0f 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/.mock/definition/endpoints/params.yml @@ -30,7 +30,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/README.md b/seed/python-sdk/exhaustive/without_aliases_with_validation/README.md index b4963779236..c23de9bb96f 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/README.md +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/README.md @@ -71,10 +71,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/reference.md b/seed/python-sdk/exhaustive/without_aliases_with_validation/reference.md index 942131cb4b9..06a9e63aa22 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/reference.md +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/reference.md @@ -37,8 +37,8 @@ client.endpoints.container.get_and_return_list_of_primitives(
-**request:** `typing.Sequence[str]` - +**request:** `typing.Sequence[str]` +
@@ -46,7 +46,7 @@ client.endpoints.container.get_and_return_list_of_primitives(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -99,8 +99,8 @@ client.endpoints.container.get_and_return_list_of_objects(
-**request:** `typing.Sequence[ObjectWithRequiredField]` - +**request:** `typing.Sequence[ObjectWithRequiredField]` +
@@ -108,7 +108,7 @@ client.endpoints.container.get_and_return_list_of_objects(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -156,8 +156,8 @@ client.endpoints.container.get_and_return_set_of_primitives(
-**request:** `typing.Set[str]` - +**request:** `typing.Set[str]` +
@@ -165,7 +165,7 @@ client.endpoints.container.get_and_return_set_of_primitives(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -218,8 +218,8 @@ client.endpoints.container.get_and_return_set_of_objects(
-**request:** `typing.Sequence[ObjectWithRequiredField]` - +**request:** `typing.Sequence[ObjectWithRequiredField]` +
@@ -227,7 +227,7 @@ client.endpoints.container.get_and_return_set_of_objects(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -275,8 +275,8 @@ client.endpoints.container.get_and_return_map_prim_to_prim(
-**request:** `typing.Dict[str, str]` - +**request:** `typing.Dict[str, str]` +
@@ -284,7 +284,7 @@ client.endpoints.container.get_and_return_map_prim_to_prim(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -337,8 +337,8 @@ client.endpoints.container.get_and_return_map_of_prim_to_object(
-**request:** `typing.Dict[str, ObjectWithRequiredField]` - +**request:** `typing.Dict[str, ObjectWithRequiredField]` +
@@ -346,7 +346,7 @@ client.endpoints.container.get_and_return_map_of_prim_to_object(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -397,8 +397,8 @@ client.endpoints.container.get_and_return_optional(
-**request:** `typing.Optional[ObjectWithRequiredField]` - +**request:** `typing.Optional[ObjectWithRequiredField]` +
@@ -406,7 +406,7 @@ client.endpoints.container.get_and_return_optional(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -455,8 +455,8 @@ client.endpoints.enum.get_and_return_enum(
-**request:** `WeatherReport` - +**request:** `WeatherReport` +
@@ -464,7 +464,7 @@ client.endpoints.enum.get_and_return_enum(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -513,8 +513,8 @@ client.endpoints.http_methods.test_get(
-**id:** `str` - +**id:** `str` +
@@ -522,7 +522,7 @@ client.endpoints.http_methods.test_get(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -570,8 +570,8 @@ client.endpoints.http_methods.test_post(
-**string:** `str` - +**string:** `str` +
@@ -579,7 +579,7 @@ client.endpoints.http_methods.test_post(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -628,16 +628,16 @@ client.endpoints.http_methods.test_put(
-**id:** `str` - +**id:** `str` +
-**string:** `str` - +**string:** `str` +
@@ -645,7 +645,7 @@ client.endpoints.http_methods.test_put(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -715,8 +715,8 @@ client.endpoints.http_methods.test_patch(
-**id:** `str` - +**id:** `str` +
@@ -724,103 +724,103 @@ client.endpoints.http_methods.test_patch(
**string:** `typing.Optional[str]` — This is a rather long descriptor of this single field in a more complex type. If you ask me I think this is a pretty good description for this field all things considered. - +
-**integer:** `typing.Optional[int]` - +**integer:** `typing.Optional[int]` +
-**long_:** `typing.Optional[int]` - +**long_:** `typing.Optional[int]` +
-**double:** `typing.Optional[float]` - +**double:** `typing.Optional[float]` +
-**bool_:** `typing.Optional[bool]` - +**bool_:** `typing.Optional[bool]` +
-**datetime:** `typing.Optional[dt.datetime]` - +**datetime:** `typing.Optional[dt.datetime]` +
-**date:** `typing.Optional[dt.date]` - +**date:** `typing.Optional[dt.date]` +
-**uuid_:** `typing.Optional[uuid.UUID]` - +**uuid_:** `typing.Optional[uuid.UUID]` +
-**base_64:** `typing.Optional[str]` - +**base_64:** `typing.Optional[str]` +
-**list_:** `typing.Optional[typing.Sequence[str]]` - +**list_:** `typing.Optional[typing.Sequence[str]]` +
-**set_:** `typing.Optional[typing.Set[str]]` - +**set_:** `typing.Optional[typing.Set[str]]` +
-**map_:** `typing.Optional[typing.Dict[int, str]]` - +**map_:** `typing.Optional[typing.Dict[int, str]]` +
-**bigint:** `typing.Optional[str]` - +**bigint:** `typing.Optional[str]` +
@@ -828,7 +828,7 @@ client.endpoints.http_methods.test_patch(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -876,8 +876,8 @@ client.endpoints.http_methods.test_delete(
-**id:** `str` - +**id:** `str` +
@@ -885,7 +885,7 @@ client.endpoints.http_methods.test_delete(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -956,103 +956,103 @@ client.endpoints.object.get_and_return_with_optional_field(
**string:** `typing.Optional[str]` — This is a rather long descriptor of this single field in a more complex type. If you ask me I think this is a pretty good description for this field all things considered. - +
-**integer:** `typing.Optional[int]` - +**integer:** `typing.Optional[int]` +
-**long_:** `typing.Optional[int]` - +**long_:** `typing.Optional[int]` +
-**double:** `typing.Optional[float]` - +**double:** `typing.Optional[float]` +
-**bool_:** `typing.Optional[bool]` - +**bool_:** `typing.Optional[bool]` +
-**datetime:** `typing.Optional[dt.datetime]` - +**datetime:** `typing.Optional[dt.datetime]` +
-**date:** `typing.Optional[dt.date]` - +**date:** `typing.Optional[dt.date]` +
-**uuid_:** `typing.Optional[uuid.UUID]` - +**uuid_:** `typing.Optional[uuid.UUID]` +
-**base_64:** `typing.Optional[str]` - +**base_64:** `typing.Optional[str]` +
-**list_:** `typing.Optional[typing.Sequence[str]]` - +**list_:** `typing.Optional[typing.Sequence[str]]` +
-**set_:** `typing.Optional[typing.Set[str]]` - +**set_:** `typing.Optional[typing.Set[str]]` +
-**map_:** `typing.Optional[typing.Dict[int, str]]` - +**map_:** `typing.Optional[typing.Dict[int, str]]` +
-**bigint:** `typing.Optional[str]` - +**bigint:** `typing.Optional[str]` +
@@ -1060,7 +1060,7 @@ client.endpoints.object.get_and_return_with_optional_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1108,8 +1108,8 @@ client.endpoints.object.get_and_return_with_required_field(
-**string:** `str` - +**string:** `str` +
@@ -1117,7 +1117,7 @@ client.endpoints.object.get_and_return_with_required_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1165,8 +1165,8 @@ client.endpoints.object.get_and_return_with_map_of_map(
-**map_:** `typing.Dict[str, typing.Dict[str, str]]` - +**map_:** `typing.Dict[str, typing.Dict[str, str]]` +
@@ -1174,7 +1174,7 @@ client.endpoints.object.get_and_return_with_map_of_map(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1247,16 +1247,16 @@ client.endpoints.object.get_and_return_nested_with_optional_field(
-**string:** `typing.Optional[str]` - +**string:** `typing.Optional[str]` +
-**nested_object:** `typing.Optional[ObjectWithOptionalField]` - +**nested_object:** `typing.Optional[ObjectWithOptionalField]` +
@@ -1264,7 +1264,7 @@ client.endpoints.object.get_and_return_nested_with_optional_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1338,24 +1338,24 @@ client.endpoints.object.get_and_return_nested_with_required_field(
-**string_:** `str` - +**string_:** `str` +
-**string:** `str` - +**string:** `str` +
-**nested_object:** `ObjectWithOptionalField` - +**nested_object:** `ObjectWithOptionalField` +
@@ -1363,7 +1363,7 @@ client.endpoints.object.get_and_return_nested_with_required_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1443,8 +1443,8 @@ client.endpoints.object.get_and_return_nested_with_required_field_as_list(
-**request:** `typing.Sequence[NestedObjectWithRequiredField]` - +**request:** `typing.Sequence[NestedObjectWithRequiredField]` +
@@ -1452,7 +1452,7 @@ client.endpoints.object.get_and_return_nested_with_required_field_as_list(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1515,8 +1515,8 @@ client.endpoints.params.get_with_path(
-**param:** `str` - +**param:** `str` +
@@ -1524,7 +1524,7 @@ client.endpoints.params.get_with_path(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1587,16 +1587,16 @@ client.endpoints.params.get_with_query(
-**query:** `str` - +**query:** `str` +
-**number:** `int` - +**number:** `int` +
@@ -1604,7 +1604,7 @@ client.endpoints.params.get_with_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1650,7 +1650,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) ``` @@ -1667,16 +1667,16 @@ client.endpoints.params.get_with_allow_multiple_query(
-**query:** `typing.Union[str, typing.Sequence[str]]` - +**query:** `typing.Union[str, typing.Sequence[str]]` +
-**numer:** `typing.Union[int, typing.Sequence[int]]` - +**number:** `typing.Union[int, typing.Sequence[int]]` +
@@ -1684,7 +1684,7 @@ client.endpoints.params.get_with_allow_multiple_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1747,16 +1747,16 @@ client.endpoints.params.get_with_path_and_query(
-**param:** `str` - +**param:** `str` +
-**query:** `str` - +**query:** `str` +
@@ -1764,7 +1764,7 @@ client.endpoints.params.get_with_path_and_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1827,16 +1827,16 @@ client.endpoints.params.modify_with_path(
-**param:** `str` - +**param:** `str` +
-**request:** `str` - +**request:** `str` +
@@ -1844,7 +1844,7 @@ client.endpoints.params.modify_with_path(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1893,8 +1893,8 @@ client.endpoints.primitive.get_and_return_string(
-**request:** `str` - +**request:** `str` +
@@ -1902,7 +1902,7 @@ client.endpoints.primitive.get_and_return_string(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1950,8 +1950,8 @@ client.endpoints.primitive.get_and_return_int(
-**request:** `int` - +**request:** `int` +
@@ -1959,7 +1959,7 @@ client.endpoints.primitive.get_and_return_int(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2007,8 +2007,8 @@ client.endpoints.primitive.get_and_return_long(
-**request:** `int` - +**request:** `int` +
@@ -2016,7 +2016,7 @@ client.endpoints.primitive.get_and_return_long(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2064,8 +2064,8 @@ client.endpoints.primitive.get_and_return_double(
-**request:** `float` - +**request:** `float` +
@@ -2073,7 +2073,7 @@ client.endpoints.primitive.get_and_return_double(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2121,8 +2121,8 @@ client.endpoints.primitive.get_and_return_bool(
-**request:** `bool` - +**request:** `bool` +
@@ -2130,7 +2130,7 @@ client.endpoints.primitive.get_and_return_bool(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2182,8 +2182,8 @@ client.endpoints.primitive.get_and_return_datetime(
-**request:** `dt.datetime` - +**request:** `dt.datetime` +
@@ -2191,7 +2191,7 @@ client.endpoints.primitive.get_and_return_datetime(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2243,8 +2243,8 @@ client.endpoints.primitive.get_and_return_date(
-**request:** `dt.date` - +**request:** `dt.date` +
@@ -2252,7 +2252,7 @@ client.endpoints.primitive.get_and_return_date(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2304,8 +2304,8 @@ client.endpoints.primitive.get_and_return_uuid(
-**request:** `uuid.UUID` - +**request:** `uuid.UUID` +
@@ -2313,7 +2313,7 @@ client.endpoints.primitive.get_and_return_uuid(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2361,8 +2361,8 @@ client.endpoints.primitive.get_and_return_base_64(
-**request:** `str` - +**request:** `str` +
@@ -2370,7 +2370,7 @@ client.endpoints.primitive.get_and_return_base_64(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2423,8 +2423,8 @@ client.endpoints.union.get_and_return_union(
-**request:** `Animal` - +**request:** `Animal` +
@@ -2432,7 +2432,7 @@ client.endpoints.union.get_and_return_union(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2521,24 +2521,24 @@ client.inlined_requests.post_with_object_bodyand_response(
-**string:** `str` - +**string:** `str` +
-**integer:** `int` - +**integer:** `int` +
-**nested_object:** `ObjectWithOptionalField` - +**nested_object:** `ObjectWithOptionalField` +
@@ -2546,7 +2546,7 @@ client.inlined_requests.post_with_object_bodyand_response(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2609,8 +2609,8 @@ client.no_auth.post_with_no_auth(
-**request:** `typing.Optional[typing.Any]` - +**request:** `typing.Optional[typing.Any]` +
@@ -2618,7 +2618,7 @@ client.no_auth.post_with_no_auth(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2666,7 +2666,7 @@ client.no_req_body.get_with_no_request_body()
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2713,7 +2713,7 @@ client.no_req_body.post_with_no_request_body()
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2764,24 +2764,24 @@ client.req_with_headers.get_with_custom_header(
-**x_test_service_header:** `str` - +**x_test_service_header:** `str` +
-**x_test_endpoint_header:** `str` - +**x_test_endpoint_header:** `str` +
-**request:** `str` - +**request:** `str` +
@@ -2789,7 +2789,7 @@ client.req_with_headers.get_with_custom_header(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet-templates.json b/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet-templates.json index 65dfae3aba5..cc71b858a1d 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet-templates.json +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet-templates.json @@ -5412,11 +5412,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -5484,11 +5484,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet.json b/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet.json index a5180cd2085..cf4f2f3fc1e 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet.json +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/snippet.json @@ -282,8 +282,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/http_client.py index b07401b50eb..fcb1531a0b3 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/pydantic_utilities.py index 8aed03406a2..4f18f2d9ba4 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/core/pydantic_utilities.py @@ -104,9 +104,9 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. - # + # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models # that we have less control over, and this is less intrusive than custom serializers for now. if IS_PYDANTIC_V2: diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/endpoints/params/client.py index ec5e0bd2967..44152d7cc11 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/src/seed/endpoints/params/client.py @@ -115,7 +115,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -125,7 +125,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -144,7 +144,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -152,7 +152,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -385,7 +385,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -395,7 +395,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -419,7 +419,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) @@ -430,7 +430,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/without_aliases_with_validation/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/without_aliases_with_validation/tests/endpoints/test_params.py index ae40ee2d46b..8494ac7e727 100644 --- a/seed/python-sdk/exhaustive/without_aliases_with_validation/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/without_aliases_with_validation/tests/endpoints/test_params.py @@ -32,12 +32,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="string", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="string", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="string", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="string", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/.mock/definition/endpoints/params.yml b/seed/python-sdk/exhaustive/without_aliases_without_validation/.mock/definition/endpoints/params.yml index 7766547ad79..e9e6435ab0f 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/.mock/definition/endpoints/params.yml +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/.mock/definition/endpoints/params.yml @@ -30,7 +30,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/README.md b/seed/python-sdk/exhaustive/without_aliases_without_validation/README.md index b4963779236..c23de9bb96f 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/README.md +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/README.md @@ -71,10 +71,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/reference.md b/seed/python-sdk/exhaustive/without_aliases_without_validation/reference.md index 942131cb4b9..06a9e63aa22 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/reference.md +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/reference.md @@ -37,8 +37,8 @@ client.endpoints.container.get_and_return_list_of_primitives(
-**request:** `typing.Sequence[str]` - +**request:** `typing.Sequence[str]` +
@@ -46,7 +46,7 @@ client.endpoints.container.get_and_return_list_of_primitives(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -99,8 +99,8 @@ client.endpoints.container.get_and_return_list_of_objects(
-**request:** `typing.Sequence[ObjectWithRequiredField]` - +**request:** `typing.Sequence[ObjectWithRequiredField]` +
@@ -108,7 +108,7 @@ client.endpoints.container.get_and_return_list_of_objects(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -156,8 +156,8 @@ client.endpoints.container.get_and_return_set_of_primitives(
-**request:** `typing.Set[str]` - +**request:** `typing.Set[str]` +
@@ -165,7 +165,7 @@ client.endpoints.container.get_and_return_set_of_primitives(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -218,8 +218,8 @@ client.endpoints.container.get_and_return_set_of_objects(
-**request:** `typing.Sequence[ObjectWithRequiredField]` - +**request:** `typing.Sequence[ObjectWithRequiredField]` +
@@ -227,7 +227,7 @@ client.endpoints.container.get_and_return_set_of_objects(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -275,8 +275,8 @@ client.endpoints.container.get_and_return_map_prim_to_prim(
-**request:** `typing.Dict[str, str]` - +**request:** `typing.Dict[str, str]` +
@@ -284,7 +284,7 @@ client.endpoints.container.get_and_return_map_prim_to_prim(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -337,8 +337,8 @@ client.endpoints.container.get_and_return_map_of_prim_to_object(
-**request:** `typing.Dict[str, ObjectWithRequiredField]` - +**request:** `typing.Dict[str, ObjectWithRequiredField]` +
@@ -346,7 +346,7 @@ client.endpoints.container.get_and_return_map_of_prim_to_object(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -397,8 +397,8 @@ client.endpoints.container.get_and_return_optional(
-**request:** `typing.Optional[ObjectWithRequiredField]` - +**request:** `typing.Optional[ObjectWithRequiredField]` +
@@ -406,7 +406,7 @@ client.endpoints.container.get_and_return_optional(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -455,8 +455,8 @@ client.endpoints.enum.get_and_return_enum(
-**request:** `WeatherReport` - +**request:** `WeatherReport` +
@@ -464,7 +464,7 @@ client.endpoints.enum.get_and_return_enum(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -513,8 +513,8 @@ client.endpoints.http_methods.test_get(
-**id:** `str` - +**id:** `str` +
@@ -522,7 +522,7 @@ client.endpoints.http_methods.test_get(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -570,8 +570,8 @@ client.endpoints.http_methods.test_post(
-**string:** `str` - +**string:** `str` +
@@ -579,7 +579,7 @@ client.endpoints.http_methods.test_post(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -628,16 +628,16 @@ client.endpoints.http_methods.test_put(
-**id:** `str` - +**id:** `str` +
-**string:** `str` - +**string:** `str` +
@@ -645,7 +645,7 @@ client.endpoints.http_methods.test_put(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -715,8 +715,8 @@ client.endpoints.http_methods.test_patch(
-**id:** `str` - +**id:** `str` +
@@ -724,103 +724,103 @@ client.endpoints.http_methods.test_patch(
**string:** `typing.Optional[str]` — This is a rather long descriptor of this single field in a more complex type. If you ask me I think this is a pretty good description for this field all things considered. - +
-**integer:** `typing.Optional[int]` - +**integer:** `typing.Optional[int]` +
-**long_:** `typing.Optional[int]` - +**long_:** `typing.Optional[int]` +
-**double:** `typing.Optional[float]` - +**double:** `typing.Optional[float]` +
-**bool_:** `typing.Optional[bool]` - +**bool_:** `typing.Optional[bool]` +
-**datetime:** `typing.Optional[dt.datetime]` - +**datetime:** `typing.Optional[dt.datetime]` +
-**date:** `typing.Optional[dt.date]` - +**date:** `typing.Optional[dt.date]` +
-**uuid_:** `typing.Optional[uuid.UUID]` - +**uuid_:** `typing.Optional[uuid.UUID]` +
-**base_64:** `typing.Optional[str]` - +**base_64:** `typing.Optional[str]` +
-**list_:** `typing.Optional[typing.Sequence[str]]` - +**list_:** `typing.Optional[typing.Sequence[str]]` +
-**set_:** `typing.Optional[typing.Set[str]]` - +**set_:** `typing.Optional[typing.Set[str]]` +
-**map_:** `typing.Optional[typing.Dict[int, str]]` - +**map_:** `typing.Optional[typing.Dict[int, str]]` +
-**bigint:** `typing.Optional[str]` - +**bigint:** `typing.Optional[str]` +
@@ -828,7 +828,7 @@ client.endpoints.http_methods.test_patch(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -876,8 +876,8 @@ client.endpoints.http_methods.test_delete(
-**id:** `str` - +**id:** `str` +
@@ -885,7 +885,7 @@ client.endpoints.http_methods.test_delete(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -956,103 +956,103 @@ client.endpoints.object.get_and_return_with_optional_field(
**string:** `typing.Optional[str]` — This is a rather long descriptor of this single field in a more complex type. If you ask me I think this is a pretty good description for this field all things considered. - +
-**integer:** `typing.Optional[int]` - +**integer:** `typing.Optional[int]` +
-**long_:** `typing.Optional[int]` - +**long_:** `typing.Optional[int]` +
-**double:** `typing.Optional[float]` - +**double:** `typing.Optional[float]` +
-**bool_:** `typing.Optional[bool]` - +**bool_:** `typing.Optional[bool]` +
-**datetime:** `typing.Optional[dt.datetime]` - +**datetime:** `typing.Optional[dt.datetime]` +
-**date:** `typing.Optional[dt.date]` - +**date:** `typing.Optional[dt.date]` +
-**uuid_:** `typing.Optional[uuid.UUID]` - +**uuid_:** `typing.Optional[uuid.UUID]` +
-**base_64:** `typing.Optional[str]` - +**base_64:** `typing.Optional[str]` +
-**list_:** `typing.Optional[typing.Sequence[str]]` - +**list_:** `typing.Optional[typing.Sequence[str]]` +
-**set_:** `typing.Optional[typing.Set[str]]` - +**set_:** `typing.Optional[typing.Set[str]]` +
-**map_:** `typing.Optional[typing.Dict[int, str]]` - +**map_:** `typing.Optional[typing.Dict[int, str]]` +
-**bigint:** `typing.Optional[str]` - +**bigint:** `typing.Optional[str]` +
@@ -1060,7 +1060,7 @@ client.endpoints.object.get_and_return_with_optional_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1108,8 +1108,8 @@ client.endpoints.object.get_and_return_with_required_field(
-**string:** `str` - +**string:** `str` +
@@ -1117,7 +1117,7 @@ client.endpoints.object.get_and_return_with_required_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1165,8 +1165,8 @@ client.endpoints.object.get_and_return_with_map_of_map(
-**map_:** `typing.Dict[str, typing.Dict[str, str]]` - +**map_:** `typing.Dict[str, typing.Dict[str, str]]` +
@@ -1174,7 +1174,7 @@ client.endpoints.object.get_and_return_with_map_of_map(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1247,16 +1247,16 @@ client.endpoints.object.get_and_return_nested_with_optional_field(
-**string:** `typing.Optional[str]` - +**string:** `typing.Optional[str]` +
-**nested_object:** `typing.Optional[ObjectWithOptionalField]` - +**nested_object:** `typing.Optional[ObjectWithOptionalField]` +
@@ -1264,7 +1264,7 @@ client.endpoints.object.get_and_return_nested_with_optional_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1338,24 +1338,24 @@ client.endpoints.object.get_and_return_nested_with_required_field(
-**string_:** `str` - +**string_:** `str` +
-**string:** `str` - +**string:** `str` +
-**nested_object:** `ObjectWithOptionalField` - +**nested_object:** `ObjectWithOptionalField` +
@@ -1363,7 +1363,7 @@ client.endpoints.object.get_and_return_nested_with_required_field(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1443,8 +1443,8 @@ client.endpoints.object.get_and_return_nested_with_required_field_as_list(
-**request:** `typing.Sequence[NestedObjectWithRequiredField]` - +**request:** `typing.Sequence[NestedObjectWithRequiredField]` +
@@ -1452,7 +1452,7 @@ client.endpoints.object.get_and_return_nested_with_required_field_as_list(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1515,8 +1515,8 @@ client.endpoints.params.get_with_path(
-**param:** `str` - +**param:** `str` +
@@ -1524,7 +1524,7 @@ client.endpoints.params.get_with_path(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1587,16 +1587,16 @@ client.endpoints.params.get_with_query(
-**query:** `str` - +**query:** `str` +
-**number:** `int` - +**number:** `int` +
@@ -1604,7 +1604,7 @@ client.endpoints.params.get_with_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1650,7 +1650,7 @@ client = SeedExhaustive( ) client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) ``` @@ -1667,16 +1667,16 @@ client.endpoints.params.get_with_allow_multiple_query(
-**query:** `typing.Union[str, typing.Sequence[str]]` - +**query:** `typing.Union[str, typing.Sequence[str]]` +
-**numer:** `typing.Union[int, typing.Sequence[int]]` - +**number:** `typing.Union[int, typing.Sequence[int]]` +
@@ -1684,7 +1684,7 @@ client.endpoints.params.get_with_allow_multiple_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1747,16 +1747,16 @@ client.endpoints.params.get_with_path_and_query(
-**param:** `str` - +**param:** `str` +
-**query:** `str` - +**query:** `str` +
@@ -1764,7 +1764,7 @@ client.endpoints.params.get_with_path_and_query(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1827,16 +1827,16 @@ client.endpoints.params.modify_with_path(
-**param:** `str` - +**param:** `str` +
-**request:** `str` - +**request:** `str` +
@@ -1844,7 +1844,7 @@ client.endpoints.params.modify_with_path(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1893,8 +1893,8 @@ client.endpoints.primitive.get_and_return_string(
-**request:** `str` - +**request:** `str` +
@@ -1902,7 +1902,7 @@ client.endpoints.primitive.get_and_return_string(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -1950,8 +1950,8 @@ client.endpoints.primitive.get_and_return_int(
-**request:** `int` - +**request:** `int` +
@@ -1959,7 +1959,7 @@ client.endpoints.primitive.get_and_return_int(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2007,8 +2007,8 @@ client.endpoints.primitive.get_and_return_long(
-**request:** `int` - +**request:** `int` +
@@ -2016,7 +2016,7 @@ client.endpoints.primitive.get_and_return_long(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2064,8 +2064,8 @@ client.endpoints.primitive.get_and_return_double(
-**request:** `float` - +**request:** `float` +
@@ -2073,7 +2073,7 @@ client.endpoints.primitive.get_and_return_double(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2121,8 +2121,8 @@ client.endpoints.primitive.get_and_return_bool(
-**request:** `bool` - +**request:** `bool` +
@@ -2130,7 +2130,7 @@ client.endpoints.primitive.get_and_return_bool(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2182,8 +2182,8 @@ client.endpoints.primitive.get_and_return_datetime(
-**request:** `dt.datetime` - +**request:** `dt.datetime` +
@@ -2191,7 +2191,7 @@ client.endpoints.primitive.get_and_return_datetime(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2243,8 +2243,8 @@ client.endpoints.primitive.get_and_return_date(
-**request:** `dt.date` - +**request:** `dt.date` +
@@ -2252,7 +2252,7 @@ client.endpoints.primitive.get_and_return_date(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2304,8 +2304,8 @@ client.endpoints.primitive.get_and_return_uuid(
-**request:** `uuid.UUID` - +**request:** `uuid.UUID` +
@@ -2313,7 +2313,7 @@ client.endpoints.primitive.get_and_return_uuid(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2361,8 +2361,8 @@ client.endpoints.primitive.get_and_return_base_64(
-**request:** `str` - +**request:** `str` +
@@ -2370,7 +2370,7 @@ client.endpoints.primitive.get_and_return_base_64(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2423,8 +2423,8 @@ client.endpoints.union.get_and_return_union(
-**request:** `Animal` - +**request:** `Animal` +
@@ -2432,7 +2432,7 @@ client.endpoints.union.get_and_return_union(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2521,24 +2521,24 @@ client.inlined_requests.post_with_object_bodyand_response(
-**string:** `str` - +**string:** `str` +
-**integer:** `int` - +**integer:** `int` +
-**nested_object:** `ObjectWithOptionalField` - +**nested_object:** `ObjectWithOptionalField` +
@@ -2546,7 +2546,7 @@ client.inlined_requests.post_with_object_bodyand_response(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2609,8 +2609,8 @@ client.no_auth.post_with_no_auth(
-**request:** `typing.Optional[typing.Any]` - +**request:** `typing.Optional[typing.Any]` +
@@ -2618,7 +2618,7 @@ client.no_auth.post_with_no_auth(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2666,7 +2666,7 @@ client.no_req_body.get_with_no_request_body()
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2713,7 +2713,7 @@ client.no_req_body.post_with_no_request_body()
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
@@ -2764,24 +2764,24 @@ client.req_with_headers.get_with_custom_header(
-**x_test_service_header:** `str` - +**x_test_service_header:** `str` +
-**x_test_endpoint_header:** `str` - +**x_test_endpoint_header:** `str` +
-**request:** `str` - +**request:** `str` +
@@ -2789,7 +2789,7 @@ client.req_with_headers.get_with_custom_header(
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - +
diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet-templates.json b/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet-templates.json index 65dfae3aba5..cc71b858a1d 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet-templates.json +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet-templates.json @@ -5412,11 +5412,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], @@ -5484,11 +5484,11 @@ "value": { "imports": [], "isOptional": true, - "templateString": "numer=$FERN_INPUT", + "templateString": "number=$FERN_INPUT", "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet.json b/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet.json index a5180cd2085..cf4f2f3fc1e 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet.json +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/snippet.json @@ -282,8 +282,8 @@ "identifier_override": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n numer=1,\n)\n", - "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n numer=1,\n )\n\n\nasyncio.run(main())\n", + "sync_client": "from seed import SeedExhaustive\n\nclient = SeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n number=1,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedExhaustive\n\nclient = AsyncSeedExhaustive(\n token=\"YOUR_TOKEN\",\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.endpoints.params.get_with_allow_multiple_query(\n query=\"string\",\n number=1,\n )\n\n\nasyncio.run(main())\n", "type": "python" } }, diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/http_client.py b/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/http_client.py index b07401b50eb..fcb1531a0b3 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/http_client.py +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/pydantic_utilities.py index 8aed03406a2..4f18f2d9ba4 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/core/pydantic_utilities.py @@ -104,9 +104,9 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. - # + # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models # that we have less control over, and this is less intrusive than custom serializers for now. if IS_PYDANTIC_V2: diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/endpoints/params/client.py b/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/endpoints/params/client.py index f06dc98daf2..e8a314b234a 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/endpoints/params/client.py +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/src/seed/endpoints/params/client.py @@ -115,7 +115,7 @@ def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -125,7 +125,7 @@ def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -144,7 +144,7 @@ def get_with_allow_multiple_query( ) client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) """ _response = self._client_wrapper.httpx_client.request( @@ -152,7 +152,7 @@ def get_with_allow_multiple_query( method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) @@ -385,7 +385,7 @@ async def get_with_allow_multiple_query( self, *, query: typing.Union[str, typing.Sequence[str]], - numer: typing.Union[int, typing.Sequence[int]], + number: typing.Union[int, typing.Sequence[int]], request_options: typing.Optional[RequestOptions] = None, ) -> None: """ @@ -395,7 +395,7 @@ async def get_with_allow_multiple_query( ---------- query : typing.Union[str, typing.Sequence[str]] - numer : typing.Union[int, typing.Sequence[int]] + number : typing.Union[int, typing.Sequence[int]] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -419,7 +419,7 @@ async def get_with_allow_multiple_query( async def main() -> None: await client.endpoints.params.get_with_allow_multiple_query( query="string", - numer=1, + number=1, ) @@ -430,7 +430,7 @@ async def main() -> None: method="GET", params={ "query": query, - "numer": numer, + "number": number, }, request_options=request_options, ) diff --git a/seed/python-sdk/exhaustive/without_aliases_without_validation/tests/endpoints/test_params.py b/seed/python-sdk/exhaustive/without_aliases_without_validation/tests/endpoints/test_params.py index ae40ee2d46b..8494ac7e727 100644 --- a/seed/python-sdk/exhaustive/without_aliases_without_validation/tests/endpoints/test_params.py +++ b/seed/python-sdk/exhaustive/without_aliases_without_validation/tests/endpoints/test_params.py @@ -32,12 +32,12 @@ async def test_get_with_query(client: SeedExhaustive, async_client: AsyncSeedExh async def test_get_with_allow_multiple_query(client: SeedExhaustive, async_client: AsyncSeedExhaustive) -> None: # Type ignore to avoid mypy complaining about the function not being meant to return a value assert ( - client.endpoints.params.get_with_allow_multiple_query(query="string", numer=1) # type: ignore[func-returns-value] + client.endpoints.params.get_with_allow_multiple_query(query="string", number=1) # type: ignore[func-returns-value] is None ) assert ( - await async_client.endpoints.params.get_with_allow_multiple_query(query="string", numer=1) # type: ignore[func-returns-value] + await async_client.endpoints.params.get_with_allow_multiple_query(query="string", number=1) # type: ignore[func-returns-value] is None ) diff --git a/seed/python-sdk/extends/README.md b/seed/python-sdk/extends/README.md index 0cd0d66f64f..c1f67d949ed 100644 --- a/seed/python-sdk/extends/README.md +++ b/seed/python-sdk/extends/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/extends/src/seed/core/http_client.py b/seed/python-sdk/extends/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/extends/src/seed/core/http_client.py +++ b/seed/python-sdk/extends/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py b/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/extra-properties/README.md b/seed/python-sdk/extra-properties/README.md index 9986152f13e..43165ccf8d2 100644 --- a/seed/python-sdk/extra-properties/README.md +++ b/seed/python-sdk/extra-properties/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/extra-properties/src/seed/core/http_client.py b/seed/python-sdk/extra-properties/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/extra-properties/src/seed/core/http_client.py +++ b/seed/python-sdk/extra-properties/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py b/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/file-download/default-chunk-size/src/seed/core/http_client.py b/seed/python-sdk/file-download/default-chunk-size/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/file-download/default-chunk-size/src/seed/core/http_client.py +++ b/seed/python-sdk/file-download/default-chunk-size/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/file-download/default-chunk-size/src/seed/core/pydantic_utilities.py b/seed/python-sdk/file-download/default-chunk-size/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/file-download/default-chunk-size/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/file-download/default-chunk-size/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/file-download/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/file-download/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/file-download/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/file-download/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/file-download/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/file-download/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/file-download/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/file-download/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/file-upload/.mock/definition/service.yml b/seed/python-sdk/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/python-sdk/file-upload/.mock/definition/service.yml +++ b/seed/python-sdk/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/python-sdk/file-upload/.mock/ir.json b/seed/python-sdk/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/python-sdk/file-upload/.mock/ir.json +++ b/seed/python-sdk/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/python-sdk/file-upload/src/seed/core/http_client.py b/seed/python-sdk/file-upload/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/file-upload/src/seed/core/http_client.py +++ b/seed/python-sdk/file-upload/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py b/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/folders/README.md b/seed/python-sdk/folders/README.md index 9bb5d578cad..f84a6185d9e 100644 --- a/seed/python-sdk/folders/README.md +++ b/seed/python-sdk/folders/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/folders/src/seed/core/http_client.py b/seed/python-sdk/folders/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/folders/src/seed/core/http_client.py +++ b/seed/python-sdk/folders/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py b/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/grpc-proto-exhaustive/README.md b/seed/python-sdk/grpc-proto-exhaustive/README.md index c01d91950d8..68fdc5fdc44 100644 --- a/seed/python-sdk/grpc-proto-exhaustive/README.md +++ b/seed/python-sdk/grpc-proto-exhaustive/README.md @@ -83,10 +83,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/http_client.py b/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/http_client.py +++ b/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/pydantic_utilities.py b/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/grpc-proto-exhaustive/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/grpc-proto/README.md b/seed/python-sdk/grpc-proto/README.md index 7eeec27f24a..014ddb1ba0e 100644 --- a/seed/python-sdk/grpc-proto/README.md +++ b/seed/python-sdk/grpc-proto/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/grpc-proto/src/seed/core/http_client.py b/seed/python-sdk/grpc-proto/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/grpc-proto/src/seed/core/http_client.py +++ b/seed/python-sdk/grpc-proto/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/grpc-proto/src/seed/core/pydantic_utilities.py b/seed/python-sdk/grpc-proto/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/grpc-proto/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/grpc-proto/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/grpc/README.md b/seed/python-sdk/grpc/README.md index b9545777868..8e6028c6120 100644 --- a/seed/python-sdk/grpc/README.md +++ b/seed/python-sdk/grpc/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/grpc/src/seed/core/http_client.py b/seed/python-sdk/grpc/src/seed/core/http_client.py index eb4e8943cec..b513f0434e6 100644 --- a/seed/python-sdk/grpc/src/seed/core/http_client.py +++ b/seed/python-sdk/grpc/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/grpc/src/seed/core/pydantic_utilities.py b/seed/python-sdk/grpc/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/grpc/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/grpc/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/idempotency-headers/README.md b/seed/python-sdk/idempotency-headers/README.md index 0a580c439b8..6ac4e05e047 100644 --- a/seed/python-sdk/idempotency-headers/README.md +++ b/seed/python-sdk/idempotency-headers/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/idempotency-headers/src/seed/core/http_client.py b/seed/python-sdk/idempotency-headers/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/idempotency-headers/src/seed/core/http_client.py +++ b/seed/python-sdk/idempotency-headers/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py b/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/imdb/README.md b/seed/python-sdk/imdb/README.md index 28cb6a5caa1..5882e43da6a 100644 --- a/seed/python-sdk/imdb/README.md +++ b/seed/python-sdk/imdb/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/imdb/src/seed/core/http_client.py b/seed/python-sdk/imdb/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/imdb/src/seed/core/http_client.py +++ b/seed/python-sdk/imdb/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py b/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/inline-types/README.md b/seed/python-sdk/inline-types/README.md index 47b2ee215d3..467850c5077 100644 --- a/seed/python-sdk/inline-types/README.md +++ b/seed/python-sdk/inline-types/README.md @@ -79,10 +79,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/inline-types/src/seed/core/http_client.py b/seed/python-sdk/inline-types/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/inline-types/src/seed/core/http_client.py +++ b/seed/python-sdk/inline-types/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/inline-types/src/seed/core/pydantic_utilities.py b/seed/python-sdk/inline-types/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/inline-types/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/inline-types/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/license/README.md b/seed/python-sdk/license/README.md index 9392f999ed0..01bf3d89750 100644 --- a/seed/python-sdk/license/README.md +++ b/seed/python-sdk/license/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/license/src/seed/core/http_client.py b/seed/python-sdk/license/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/license/src/seed/core/http_client.py +++ b/seed/python-sdk/license/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/license/src/seed/core/pydantic_utilities.py b/seed/python-sdk/license/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/license/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/license/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/literal/no-custom-config/.mock/definition/inlined.yml b/seed/python-sdk/literal/no-custom-config/.mock/definition/inlined.yml index c2834c5c50c..6c9fc180745 100644 --- a/seed/python-sdk/literal/no-custom-config/.mock/definition/inlined.yml +++ b/seed/python-sdk/literal/no-custom-config/.mock/definition/inlined.yml @@ -13,6 +13,12 @@ types: properties: myLiteral: literal<"How super cool"> + UndiscriminatedLiteral: + discriminated: false + union: + - string + - literal<"$ending"> + service: auth: false base-path: "" diff --git a/seed/python-sdk/literal/no-custom-config/.mock/definition/reference.yml b/seed/python-sdk/literal/no-custom-config/.mock/definition/reference.yml index ec164521928..cd64b20c29f 100644 --- a/seed/python-sdk/literal/no-custom-config/.mock/definition/reference.yml +++ b/seed/python-sdk/literal/no-custom-config/.mock/definition/reference.yml @@ -7,6 +7,7 @@ types: prompt: literal<"You are a helpful assistant"> query: string stream: literal + ending: literal<"$ending"> context: SomeLiteral maybeContext: optional containerObject: ContainerObject diff --git a/seed/python-sdk/literal/no-custom-config/README.md b/seed/python-sdk/literal/no-custom-config/README.md index 1b4d6676864..87ad6022c1f 100644 --- a/seed/python-sdk/literal/no-custom-config/README.md +++ b/seed/python-sdk/literal/no-custom-config/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/__init__.py b/seed/python-sdk/literal/no-custom-config/src/seed/__init__.py index dda8706bdf4..881ce16a926 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/__init__.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/__init__.py @@ -3,7 +3,7 @@ from .types import SendResponse from . import headers, inlined, path, query, reference from .client import AsyncSeedLiteral, SeedLiteral -from .inlined import ANestedLiteral, ATopLevelLiteral, SomeAliasedLiteral +from .inlined import ANestedLiteral, ATopLevelLiteral, SomeAliasedLiteral, UndiscriminatedLiteral from .query import AliasToPrompt, AliasToStream from .reference import ContainerObject, NestedObjectWithLiterals, SendRequest, SomeLiteral from .version import __version__ @@ -21,6 +21,7 @@ "SendResponse", "SomeAliasedLiteral", "SomeLiteral", + "UndiscriminatedLiteral", "__version__", "headers", "inlined", diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/literal/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/literal/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/inlined/__init__.py b/seed/python-sdk/literal/no-custom-config/src/seed/inlined/__init__.py index 0bdbce63972..ca3c23a8e32 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/inlined/__init__.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/inlined/__init__.py @@ -1,5 +1,5 @@ # This file was auto-generated by Fern from our API Definition. -from .types import ANestedLiteral, ATopLevelLiteral, SomeAliasedLiteral +from .types import ANestedLiteral, ATopLevelLiteral, SomeAliasedLiteral, UndiscriminatedLiteral -__all__ = ["ANestedLiteral", "ATopLevelLiteral", "SomeAliasedLiteral"] +__all__ = ["ANestedLiteral", "ATopLevelLiteral", "SomeAliasedLiteral", "UndiscriminatedLiteral"] diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/__init__.py b/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/__init__.py index 2fae519363a..a410f60bdb2 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/__init__.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/__init__.py @@ -3,5 +3,6 @@ from .a_nested_literal import ANestedLiteral from .a_top_level_literal import ATopLevelLiteral from .some_aliased_literal import SomeAliasedLiteral +from .undiscriminated_literal import UndiscriminatedLiteral -__all__ = ["ANestedLiteral", "ATopLevelLiteral", "SomeAliasedLiteral"] +__all__ = ["ANestedLiteral", "ATopLevelLiteral", "SomeAliasedLiteral", "UndiscriminatedLiteral"] diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/undiscriminated_literal.py b/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/undiscriminated_literal.py new file mode 100644 index 00000000000..0984570e27c --- /dev/null +++ b/seed/python-sdk/literal/no-custom-config/src/seed/inlined/types/undiscriminated_literal.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UndiscriminatedLiteral = typing.Union[str, typing.Literal["$ending"]] diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/reference/client.py b/seed/python-sdk/literal/no-custom-config/src/seed/reference/client.py index e7cce2dfe60..b7952b32d08 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/reference/client.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/reference/client.py @@ -74,6 +74,7 @@ def send( ), "prompt": "You are a helpful assistant", "stream": False, + "ending": "$ending", "context": "You're super wise", }, request_options=request_options, @@ -160,6 +161,7 @@ async def main() -> None: ), "prompt": "You are a helpful assistant", "stream": False, + "ending": "$ending", "context": "You're super wise", }, request_options=request_options, diff --git a/seed/python-sdk/literal/no-custom-config/src/seed/reference/types/send_request.py b/seed/python-sdk/literal/no-custom-config/src/seed/reference/types/send_request.py index 3d64859a776..2184e4ddb13 100644 --- a/seed/python-sdk/literal/no-custom-config/src/seed/reference/types/send_request.py +++ b/seed/python-sdk/literal/no-custom-config/src/seed/reference/types/send_request.py @@ -14,6 +14,7 @@ class SendRequest(UniversalBaseModel): prompt: typing.Literal["You are a helpful assistant"] = "You are a helpful assistant" query: str stream: typing.Literal[False] = False + ending: typing.Literal["$ending"] = "$ending" context: SomeLiteral = "You're super wise" maybe_context: typing_extensions.Annotated[typing.Optional[SomeLiteral], FieldMetadata(alias="maybeContext")] = None container_object: typing_extensions.Annotated[ContainerObject, FieldMetadata(alias="containerObject")] diff --git a/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/inlined.yml b/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/inlined.yml index c2834c5c50c..6c9fc180745 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/inlined.yml +++ b/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/inlined.yml @@ -13,6 +13,12 @@ types: properties: myLiteral: literal<"How super cool"> + UndiscriminatedLiteral: + discriminated: false + union: + - string + - literal<"$ending"> + service: auth: false base-path: "" diff --git a/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/reference.yml b/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/reference.yml index ec164521928..cd64b20c29f 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/reference.yml +++ b/seed/python-sdk/literal/use_typeddict_requests/.mock/definition/reference.yml @@ -7,6 +7,7 @@ types: prompt: literal<"You are a helpful assistant"> query: string stream: literal + ending: literal<"$ending"> context: SomeLiteral maybeContext: optional containerObject: ContainerObject diff --git a/seed/python-sdk/literal/use_typeddict_requests/README.md b/seed/python-sdk/literal/use_typeddict_requests/README.md index 1b4d6676864..87ad6022c1f 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/README.md +++ b/seed/python-sdk/literal/use_typeddict_requests/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/__init__.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/__init__.py index 06267f7cb94..788ed5714e3 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/__init__.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/__init__.py @@ -3,7 +3,15 @@ from .types import SendResponse from . import headers, inlined, path, query, reference from .client import AsyncSeedLiteral, SeedLiteral -from .inlined import ANestedLiteral, ANestedLiteralParams, ATopLevelLiteral, ATopLevelLiteralParams, SomeAliasedLiteral +from .inlined import ( + ANestedLiteral, + ANestedLiteralParams, + ATopLevelLiteral, + ATopLevelLiteralParams, + SomeAliasedLiteral, + UndiscriminatedLiteral, + UndiscriminatedLiteralParams, +) from .query import AliasToPrompt, AliasToStream from .reference import ( ContainerObject, @@ -36,6 +44,8 @@ "SendResponseParams", "SomeAliasedLiteral", "SomeLiteral", + "UndiscriminatedLiteral", + "UndiscriminatedLiteralParams", "__version__", "headers", "inlined", diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/http_client.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/http_client.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/pydantic_utilities.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/__init__.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/__init__.py index 2dfa51fa23a..e4dadd1762a 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/__init__.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/__init__.py @@ -1,6 +1,14 @@ # This file was auto-generated by Fern from our API Definition. -from .types import ANestedLiteral, ATopLevelLiteral, SomeAliasedLiteral -from .requests import ANestedLiteralParams, ATopLevelLiteralParams +from .types import ANestedLiteral, ATopLevelLiteral, SomeAliasedLiteral, UndiscriminatedLiteral +from .requests import ANestedLiteralParams, ATopLevelLiteralParams, UndiscriminatedLiteralParams -__all__ = ["ANestedLiteral", "ANestedLiteralParams", "ATopLevelLiteral", "ATopLevelLiteralParams", "SomeAliasedLiteral"] +__all__ = [ + "ANestedLiteral", + "ANestedLiteralParams", + "ATopLevelLiteral", + "ATopLevelLiteralParams", + "SomeAliasedLiteral", + "UndiscriminatedLiteral", + "UndiscriminatedLiteralParams", +] diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/__init__.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/__init__.py index a92f0ccd811..a38f42b11cd 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/__init__.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/__init__.py @@ -2,5 +2,6 @@ from .a_nested_literal import ANestedLiteralParams from .a_top_level_literal import ATopLevelLiteralParams +from .undiscriminated_literal import UndiscriminatedLiteralParams -__all__ = ["ANestedLiteralParams", "ATopLevelLiteralParams"] +__all__ = ["ANestedLiteralParams", "ATopLevelLiteralParams", "UndiscriminatedLiteralParams"] diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/undiscriminated_literal.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/undiscriminated_literal.py new file mode 100644 index 00000000000..5fa96fe073c --- /dev/null +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/requests/undiscriminated_literal.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UndiscriminatedLiteralParams = typing.Union[str, typing.Literal["$ending"]] diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/__init__.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/__init__.py index 2fae519363a..a410f60bdb2 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/__init__.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/__init__.py @@ -3,5 +3,6 @@ from .a_nested_literal import ANestedLiteral from .a_top_level_literal import ATopLevelLiteral from .some_aliased_literal import SomeAliasedLiteral +from .undiscriminated_literal import UndiscriminatedLiteral -__all__ = ["ANestedLiteral", "ATopLevelLiteral", "SomeAliasedLiteral"] +__all__ = ["ANestedLiteral", "ATopLevelLiteral", "SomeAliasedLiteral", "UndiscriminatedLiteral"] diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/undiscriminated_literal.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/undiscriminated_literal.py new file mode 100644 index 00000000000..0984570e27c --- /dev/null +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/inlined/types/undiscriminated_literal.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UndiscriminatedLiteral = typing.Union[str, typing.Literal["$ending"]] diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/client.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/client.py index ea6c880e5f7..485d2934542 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/client.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/client.py @@ -75,6 +75,7 @@ def send( ), "prompt": "You are a helpful assistant", "stream": False, + "ending": "$ending", "context": "You're super wise", }, request_options=request_options, @@ -162,6 +163,7 @@ async def main() -> None: ), "prompt": "You are a helpful assistant", "stream": False, + "ending": "$ending", "context": "You're super wise", }, request_options=request_options, diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/requests/send_request.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/requests/send_request.py index 2157e3afb76..ca5894cf2d2 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/requests/send_request.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/requests/send_request.py @@ -12,6 +12,7 @@ class SendRequestParams(typing_extensions.TypedDict): prompt: typing.Literal["You are a helpful assistant"] query: str stream: typing.Literal[False] + ending: typing.Literal["$ending"] context: SomeLiteral maybe_context: typing_extensions.NotRequired[ typing_extensions.Annotated[SomeLiteral, FieldMetadata(alias="maybeContext")] diff --git a/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/types/send_request.py b/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/types/send_request.py index 3d64859a776..2184e4ddb13 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/types/send_request.py +++ b/seed/python-sdk/literal/use_typeddict_requests/src/seed/reference/types/send_request.py @@ -14,6 +14,7 @@ class SendRequest(UniversalBaseModel): prompt: typing.Literal["You are a helpful assistant"] = "You are a helpful assistant" query: str stream: typing.Literal[False] = False + ending: typing.Literal["$ending"] = "$ending" context: SomeLiteral = "You're super wise" maybe_context: typing_extensions.Annotated[typing.Optional[SomeLiteral], FieldMetadata(alias="maybeContext")] = None container_object: typing_extensions.Annotated[ContainerObject, FieldMetadata(alias="containerObject")] diff --git a/seed/python-sdk/mixed-case/README.md b/seed/python-sdk/mixed-case/README.md index 261ab22f7a3..a76366ce26b 100644 --- a/seed/python-sdk/mixed-case/README.md +++ b/seed/python-sdk/mixed-case/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/mixed-case/src/seed/core/http_client.py b/seed/python-sdk/mixed-case/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/mixed-case/src/seed/core/http_client.py +++ b/seed/python-sdk/mixed-case/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py b/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/mixed-file-directory/README.md b/seed/python-sdk/mixed-file-directory/README.md index 865b802112d..6c518e5c993 100644 --- a/seed/python-sdk/mixed-file-directory/README.md +++ b/seed/python-sdk/mixed-file-directory/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/mixed-file-directory/src/seed/core/http_client.py b/seed/python-sdk/mixed-file-directory/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/mixed-file-directory/src/seed/core/http_client.py +++ b/seed/python-sdk/mixed-file-directory/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/mixed-file-directory/src/seed/core/pydantic_utilities.py b/seed/python-sdk/mixed-file-directory/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/mixed-file-directory/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/mixed-file-directory/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/multi-line-docs/.mock/definition/user.yml b/seed/python-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/python-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/python-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/python-sdk/multi-line-docs/README.md b/seed/python-sdk/multi-line-docs/README.md index de17a378917..dec21fc1a5c 100644 --- a/seed/python-sdk/multi-line-docs/README.md +++ b/seed/python-sdk/multi-line-docs/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/multi-line-docs/reference.md b/seed/python-sdk/multi-line-docs/reference.md index ff7f32a7cb5..6fc50cf8982 100644 --- a/seed/python-sdk/multi-line-docs/reference.md +++ b/seed/python-sdk/multi-line-docs/reference.md @@ -141,7 +141,7 @@ This name is unique to each user. **age:** `typing.Optional[int]` The age of the user. -This propery is not required. +This property is not required. diff --git a/seed/python-sdk/multi-line-docs/src/seed/core/http_client.py b/seed/python-sdk/multi-line-docs/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/multi-line-docs/src/seed/core/http_client.py +++ b/seed/python-sdk/multi-line-docs/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py b/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/multi-line-docs/src/seed/user/client.py b/seed/python-sdk/multi-line-docs/src/seed/user/client.py index 96c22973fdf..9a8754bdc82 100644 --- a/seed/python-sdk/multi-line-docs/src/seed/user/client.py +++ b/seed/python-sdk/multi-line-docs/src/seed/user/client.py @@ -76,7 +76,7 @@ def create_user( age : typing.Optional[int] The age of the user. - This propery is not required. + This property is not required. request_options : typing.Optional[RequestOptions] @@ -193,7 +193,7 @@ async def create_user( age : typing.Optional[int] The age of the user. - This propery is not required. + This property is not required. request_options : typing.Optional[RequestOptions] diff --git a/seed/python-sdk/multi-url-environment-no-default/README.md b/seed/python-sdk/multi-url-environment-no-default/README.md index 2020ae7b171..280c27d4708 100644 --- a/seed/python-sdk/multi-url-environment-no-default/README.md +++ b/seed/python-sdk/multi-url-environment-no-default/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/multi-url-environment-no-default/src/seed/core/http_client.py b/seed/python-sdk/multi-url-environment-no-default/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/multi-url-environment-no-default/src/seed/core/http_client.py +++ b/seed/python-sdk/multi-url-environment-no-default/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/multi-url-environment/README.md b/seed/python-sdk/multi-url-environment/README.md index 216993d240d..310d476db97 100644 --- a/seed/python-sdk/multi-url-environment/README.md +++ b/seed/python-sdk/multi-url-environment/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/multi-url-environment/src/seed/core/http_client.py b/seed/python-sdk/multi-url-environment/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/multi-url-environment/src/seed/core/http_client.py +++ b/seed/python-sdk/multi-url-environment/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py b/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/no-environment/README.md b/seed/python-sdk/no-environment/README.md index b94b5584bfc..0dfbc88ccee 100644 --- a/seed/python-sdk/no-environment/README.md +++ b/seed/python-sdk/no-environment/README.md @@ -71,10 +71,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/no-environment/src/seed/core/http_client.py b/seed/python-sdk/no-environment/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/no-environment/src/seed/core/http_client.py +++ b/seed/python-sdk/no-environment/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py b/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/nullable/.github/workflows/ci.yml b/seed/python-sdk/nullable/.github/workflows/ci.yml new file mode 100644 index 00000000000..b7316b8cab7 --- /dev/null +++ b/seed/python-sdk/nullable/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +name: ci + +on: [push] +jobs: + compile: + runs-on: ubuntu-20.04 + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Bootstrap poetry + run: | + curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 + - name: Install dependencies + run: poetry install + - name: Compile + run: poetry run mypy . + test: + runs-on: ubuntu-20.04 + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Bootstrap poetry + run: | + curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 + - name: Install dependencies + run: poetry install + + - name: Install Fern + run: npm install -g fern-api + - name: Test + run: fern test --command "poetry run pytest -rP ." + + publish: + needs: [compile, test] + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-20.04 + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Bootstrap poetry + run: | + curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 + - name: Install dependencies + run: poetry install + - name: Publish to pypi + run: | + poetry config repositories.remote + poetry --no-interaction -v publish --build --repository remote --username "$" --password "$" + env: + : ${{ secrets. }} + : ${{ secrets. }} diff --git a/seed/python-sdk/nullable/.gitignore b/seed/python-sdk/nullable/.gitignore new file mode 100644 index 00000000000..0da665feeef --- /dev/null +++ b/seed/python-sdk/nullable/.gitignore @@ -0,0 +1,5 @@ +dist/ +.mypy_cache/ +__pycache__/ +poetry.toml +.ruff_cache/ diff --git a/seed/python-sdk/nullable/.mock/definition/api.yml b/seed/python-sdk/nullable/.mock/definition/api.yml new file mode 100644 index 00000000000..ab8ab2da8f3 --- /dev/null +++ b/seed/python-sdk/nullable/.mock/definition/api.yml @@ -0,0 +1 @@ +name: nullable diff --git a/seed/python-sdk/nullable/.mock/definition/nullable.yml b/seed/python-sdk/nullable/.mock/definition/nullable.yml new file mode 100644 index 00000000000..d13943a4c82 --- /dev/null +++ b/seed/python-sdk/nullable/.mock/definition/nullable.yml @@ -0,0 +1,67 @@ +types: + User: + properties: + name: string + tags: nullable> + metadata: optional> + + Metadata: + properties: + createdAt: datetime + updatedAt: datetime + avatar: nullable + activated: optional> + +service: + base-path: /users + auth: false + endpoints: + getUsers: + path: "" + method: GET + request: + name: GetUsersRequest + query-parameters: + usernames: + type: optional + allow-multiple: true + avatar: optional + activated: + type: optional + allow-multiple: true + tags: + type: optional> + allow-multiple: true + extra: optional> + response: list + + createUser: + path: "" + method: POST + request: + name: CreateUserRequest + body: + properties: + username: string + tags: optional> + metadata: optional + avatar: + type: optional> + response: User + + deleteUser: + method: DELETE + path: "" + request: + name: DeleteUserRequest + body: + properties: + username: + docs: >- + The user to delete. + type: optional> + validation: + minLength: 2 + maxLength: 1024 + response: + type: boolean diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.mock/fern.config.json b/seed/python-sdk/nullable/.mock/fern.config.json similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.mock/fern.config.json rename to seed/python-sdk/nullable/.mock/fern.config.json diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.mock/generators.yml b/seed/python-sdk/nullable/.mock/generators.yml similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.mock/generators.yml rename to seed/python-sdk/nullable/.mock/generators.yml diff --git a/seed/python-sdk/nullable/README.md b/seed/python-sdk/nullable/README.md new file mode 100644 index 00000000000..abda3549a1e --- /dev/null +++ b/seed/python-sdk/nullable/README.md @@ -0,0 +1,167 @@ +# Seed Python Library + +[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Seed%2FPython) +[![pypi](https://img.shields.io/pypi/v/fern_nullable)](https://pypi.python.org/pypi/fern_nullable) + +The Seed Python library provides convenient access to the Seed API from Python. + +## Installation + +```sh +pip install fern_nullable +``` + +## Reference + +A full reference for this library is available [here](./reference.md). + +## Usage + +Instantiate and use the client with the following: + +```python +import datetime + +from seed import SeedNullable +from seed.nullable import Metadata + +client = SeedNullable( + base_url="https://yourhost.com/path/to/api", +) +client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + updated_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + avatar="avatar", + activated=True, + ), + avatar="avatar", +) +``` + +## Async Client + +The SDK also exports an `async` client so that you can make non-blocking calls to our API. + +```python +import asyncio +import datetime + +from seed import AsyncSeedNullable +from seed.nullable import Metadata + +client = AsyncSeedNullable( + base_url="https://yourhost.com/path/to/api", +) + + +async def main() -> None: + await client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + updated_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + avatar="avatar", + activated=True, + ), + avatar="avatar", + ) + + +asyncio.run(main()) +``` + +## Exception Handling + +When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error +will be thrown. + +```python +from seed.core.api_error import ApiError + +try: + client.nullable.create_user(...) +except ApiError as e: + print(e.status_code) + print(e.body) +``` + +## Advanced + +### Retries + +The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured +retry limit (default: 2). + +A request is deemed retryable when any of the following HTTP status codes is returned: + +- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) +- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) +- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors) + +Use the `max_retries` request option to configure this behavior. + +```python +client.nullable.create_user(..., request_options={ + "max_retries": 1 +}) +``` + +### Timeouts + +The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level. + +```python + +from seed import SeedNullable + +client = SeedNullable( + ..., + timeout=20.0, +) + + +# Override timeout for a specific method +client.nullable.create_user(..., request_options={ + "timeout_in_seconds": 1 +}) +``` + +### Custom Client + +You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies +and transports. +```python +import httpx +from seed import SeedNullable + +client = SeedNullable( + ..., + httpx_client=httpx.Client( + proxies="http://my.test.proxy.example.com", + transport=httpx.HTTPTransport(local_address="0.0.0.0"), + ), +) +``` + +## Contributing + +While we value open-source contributions to this SDK, this library is generated programmatically. +Additions made directly to this library would have to be moved over to our generation code, +otherwise they would be overwritten upon the next generated release. Feel free to open a PR as +a proof of concept, but know that we will not be able to merge it as-is. We suggest opening +an issue first to discuss with us! + +On the other hand, contributions to the README are always very welcome! diff --git a/seed/python-sdk/nullable/pyproject.toml b/seed/python-sdk/nullable/pyproject.toml new file mode 100644 index 00000000000..d0c886a05cd --- /dev/null +++ b/seed/python-sdk/nullable/pyproject.toml @@ -0,0 +1,64 @@ +[project] +name = "fern_nullable" + +[tool.poetry] +name = "fern_nullable" +version = "0.0.1" +description = "" +readme = "README.md" +authors = [] +keywords = [] + +classifiers = [ + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Operating System :: OS Independent", + "Operating System :: POSIX", + "Operating System :: MacOS", + "Operating System :: POSIX :: Linux", + "Operating System :: Microsoft :: Windows", + "Topic :: Software Development :: Libraries :: Python Modules", + "Typing :: Typed" +] +packages = [ + { include = "seed", from = "src"} +] + +[project.urls] +Repository = 'https://github.com/nullable/fern' + +[tool.poetry.dependencies] +python = "^3.8" +httpx = ">=0.21.2" +pydantic = ">= 1.9.2" +pydantic-core = "^2.18.2" +typing_extensions = ">= 4.0.0" + +[tool.poetry.dev-dependencies] +mypy = "1.0.1" +pytest = "^7.4.0" +pytest-asyncio = "^0.23.5" +python-dateutil = "^2.9.0" +types-python-dateutil = "^2.9.0.20240316" +ruff = "^0.5.6" + +[tool.pytest.ini_options] +testpaths = [ "tests" ] +asyncio_mode = "auto" + +[tool.mypy] +plugins = ["pydantic.mypy"] + +[tool.ruff] +line-length = 120 + + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/seed/python-sdk/nullable/reference.md b/seed/python-sdk/nullable/reference.md new file mode 100644 index 00000000000..4b9cab3c8de --- /dev/null +++ b/seed/python-sdk/nullable/reference.md @@ -0,0 +1,243 @@ +# Reference +## Nullable +
client.nullable.get_users(...) +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from seed import SeedNullable + +client = SeedNullable( + base_url="https://yourhost.com/path/to/api", +) +client.nullable.get_users( + usernames="usernames", + avatar="avatar", + activated=True, +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**usernames:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` + +
+
+ +
+
+ +**avatar:** `typing.Optional[str]` + +
+
+ +
+
+ +**activated:** `typing.Optional[typing.Union[bool, typing.Sequence[bool]]]` + +
+
+ +
+
+ +**tags:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` + +
+
+ +
+
+ +**extra:** `typing.Optional[bool]` + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.nullable.create_user(...) +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +import datetime + +from seed import SeedNullable +from seed.nullable import Metadata + +client = SeedNullable( + base_url="https://yourhost.com/path/to/api", +) +client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + updated_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + avatar="avatar", + activated=True, + ), + avatar="avatar", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**username:** `str` + +
+
+ +
+
+ +**tags:** `typing.Optional[typing.Sequence[str]]` + +
+
+ +
+
+ +**metadata:** `typing.Optional[Metadata]` + +
+
+ +
+
+ +**avatar:** `typing.Optional[str]` + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.nullable.delete_user(...) +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from seed import SeedNullable + +client = SeedNullable( + base_url="https://yourhost.com/path/to/api", +) +client.nullable.delete_user( + username="xy", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**username:** `typing.Optional[str]` — The user to delete. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ diff --git a/seed/python-sdk/nullable/resolved-snippet-templates.md b/seed/python-sdk/nullable/resolved-snippet-templates.md new file mode 100644 index 00000000000..8ce6f40563c --- /dev/null +++ b/seed/python-sdk/nullable/resolved-snippet-templates.md @@ -0,0 +1,46 @@ +```python + + +client = SeedNullable(base_url="https://yourhost.com/path/to/api", ) +client.nullable.get_users( + usernames="usernames", + avatar="avatar", + activated=true +) + +``` + + +```python +from seed.nullable import Metadata + +client = SeedNullable(base_url="https://yourhost.com/path/to/api", ) +client.nullable.create_user( + username="username", + tags=[ + "tags", + "tags" + ], + metadata=Metadata( + created_at="2024-01-15T09:30:00Z", + updated_at="2024-01-15T09:30:00Z", + avatar="avatar", + activated=true + ), + avatar="avatar" +) + +``` + + +```python + + +client = SeedNullable(base_url="https://yourhost.com/path/to/api", ) +client.nullable.delete_user( + username="xy" +) + +``` + + diff --git a/seed/python-sdk/nullable/snippet-templates.json b/seed/python-sdk/nullable/snippet-templates.json new file mode 100644 index 00000000000..708535938f3 --- /dev/null +++ b/seed/python-sdk/nullable/snippet-templates.json @@ -0,0 +1,642 @@ +[ + { + "sdk": { + "package": "fern_nullable", + "version": "0.0.1", + "type": "python" + }, + "endpointId": { + "path": "/users", + "method": "GET", + "identifierOverride": "endpoint_nullable.getUsers" + }, + "snippetTemplate": { + "clientInstantiation": { + "imports": [ + "from seed import SeedNullable" + ], + "isOptional": true, + "templateString": "client = SeedNullable(base_url=\"https://yourhost.com/path/to/api\", )", + "templateInputs": [], + "inputDelimiter": ",", + "type": "generic" + }, + "functionInvocation": { + "imports": [], + "isOptional": true, + "templateString": "client.nullable.get_users(\n\t$FERN_INPUT\n)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "usernames=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "usernames", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "avatar=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "avatar", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "activated=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "activated", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "tags=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "tags", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "extra=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "extra", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t", + "type": "generic" + }, + "type": "v1" + }, + "additionalTemplates": { + "async": { + "clientInstantiation": { + "imports": [ + "from seed import AsyncSeedNullable" + ], + "isOptional": true, + "templateString": "client = AsyncSeedNullable(base_url=\"https://yourhost.com/path/to/api\", )", + "templateInputs": [], + "inputDelimiter": ",", + "type": "generic" + }, + "functionInvocation": { + "imports": [], + "isOptional": true, + "templateString": "await client.nullable.get_users(\n\t$FERN_INPUT\n)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "usernames=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "usernames", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "avatar=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "avatar", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "activated=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "activated", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "tags=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "tags", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "extra=$FERN_INPUT", + "templateInputs": [ + { + "location": "QUERY", + "path": "extra", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t", + "type": "generic" + }, + "type": "v1" + } + } + }, + { + "sdk": { + "package": "fern_nullable", + "version": "0.0.1", + "type": "python" + }, + "endpointId": { + "path": "/users", + "method": "POST", + "identifierOverride": "endpoint_nullable.createUser" + }, + "snippetTemplate": { + "clientInstantiation": { + "imports": [ + "from seed import SeedNullable" + ], + "isOptional": true, + "templateString": "client = SeedNullable(base_url=\"https://yourhost.com/path/to/api\", )", + "templateInputs": [], + "inputDelimiter": ",", + "type": "generic" + }, + "functionInvocation": { + "imports": [], + "isOptional": true, + "templateString": "client.nullable.create_user(\n\t$FERN_INPUT\n)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "username=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "username", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "containerTemplateString": "tags=[\n\t\t$FERN_INPUT\n\t]", + "delimiter": ",\n\t\t", + "innerTemplate": { + "imports": [], + "isOptional": true, + "templateString": "$FERN_INPUT", + "templateInputs": [ + { + "location": "RELATIVE", + "path": null, + "type": "payload" + } + ], + "type": "generic" + }, + "templateInput": { + "location": "BODY", + "path": "tags" + }, + "type": "iterable" + } + }, + { + "type": "template", + "value": { + "imports": [ + "from seed.nullable import Metadata" + ], + "isOptional": true, + "templateString": "metadata=Metadata(\n\t\t$FERN_INPUT\n\t)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "created_at=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.createdAt", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "updated_at=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.updatedAt", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "avatar=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.avatar", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "activated=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.activated", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t\t", + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "avatar=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "avatar", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t", + "type": "generic" + }, + "type": "v1" + }, + "additionalTemplates": { + "async": { + "clientInstantiation": { + "imports": [ + "from seed import AsyncSeedNullable" + ], + "isOptional": true, + "templateString": "client = AsyncSeedNullable(base_url=\"https://yourhost.com/path/to/api\", )", + "templateInputs": [], + "inputDelimiter": ",", + "type": "generic" + }, + "functionInvocation": { + "imports": [], + "isOptional": true, + "templateString": "await client.nullable.create_user(\n\t$FERN_INPUT\n)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "username=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "username", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "containerTemplateString": "tags=[\n\t\t$FERN_INPUT\n\t]", + "delimiter": ",\n\t\t", + "innerTemplate": { + "imports": [], + "isOptional": true, + "templateString": "$FERN_INPUT", + "templateInputs": [ + { + "location": "RELATIVE", + "path": null, + "type": "payload" + } + ], + "type": "generic" + }, + "templateInput": { + "location": "BODY", + "path": "tags" + }, + "type": "iterable" + } + }, + { + "type": "template", + "value": { + "imports": [ + "from seed.nullable import Metadata" + ], + "isOptional": true, + "templateString": "metadata=Metadata(\n\t\t$FERN_INPUT\n\t)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "created_at=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.createdAt", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "updated_at=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.updatedAt", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "avatar=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.avatar", + "type": "payload" + } + ], + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "activated=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "metadata.activated", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t\t", + "type": "generic" + } + }, + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "avatar=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "avatar", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t", + "type": "generic" + }, + "type": "v1" + } + } + }, + { + "sdk": { + "package": "fern_nullable", + "version": "0.0.1", + "type": "python" + }, + "endpointId": { + "path": "/users", + "method": "DELETE", + "identifierOverride": "endpoint_nullable.deleteUser" + }, + "snippetTemplate": { + "clientInstantiation": { + "imports": [ + "from seed import SeedNullable" + ], + "isOptional": true, + "templateString": "client = SeedNullable(base_url=\"https://yourhost.com/path/to/api\", )", + "templateInputs": [], + "inputDelimiter": ",", + "type": "generic" + }, + "functionInvocation": { + "imports": [], + "isOptional": true, + "templateString": "client.nullable.delete_user(\n\t$FERN_INPUT\n)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "username=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "username", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t", + "type": "generic" + }, + "type": "v1" + }, + "additionalTemplates": { + "async": { + "clientInstantiation": { + "imports": [ + "from seed import AsyncSeedNullable" + ], + "isOptional": true, + "templateString": "client = AsyncSeedNullable(base_url=\"https://yourhost.com/path/to/api\", )", + "templateInputs": [], + "inputDelimiter": ",", + "type": "generic" + }, + "functionInvocation": { + "imports": [], + "isOptional": true, + "templateString": "await client.nullable.delete_user(\n\t$FERN_INPUT\n)", + "templateInputs": [ + { + "type": "template", + "value": { + "imports": [], + "isOptional": true, + "templateString": "username=$FERN_INPUT", + "templateInputs": [ + { + "location": "BODY", + "path": "username", + "type": "payload" + } + ], + "type": "generic" + } + } + ], + "inputDelimiter": ",\n\t", + "type": "generic" + }, + "type": "v1" + } + } + } +] \ No newline at end of file diff --git a/seed/python-sdk/nullable/snippet.json b/seed/python-sdk/nullable/snippet.json new file mode 100644 index 00000000000..c92c890b754 --- /dev/null +++ b/seed/python-sdk/nullable/snippet.json @@ -0,0 +1,44 @@ +{ + "types": {}, + "endpoints": [ + { + "example_identifier": "default", + "id": { + "path": "/users", + "method": "GET", + "identifier_override": "endpoint_nullable.getUsers" + }, + "snippet": { + "sync_client": "from seed import SeedNullable\n\nclient = SeedNullable(\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.nullable.get_users(\n usernames=\"usernames\",\n avatar=\"avatar\",\n activated=True,\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedNullable\n\nclient = AsyncSeedNullable(\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.nullable.get_users(\n usernames=\"usernames\",\n avatar=\"avatar\",\n activated=True,\n )\n\n\nasyncio.run(main())\n", + "type": "python" + } + }, + { + "example_identifier": "default", + "id": { + "path": "/users", + "method": "POST", + "identifier_override": "endpoint_nullable.createUser" + }, + "snippet": { + "sync_client": "import datetime\n\nfrom seed import SeedNullable\nfrom seed.nullable import Metadata\n\nclient = SeedNullable(\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.nullable.create_user(\n username=\"username\",\n tags=[\"tags\", \"tags\"],\n metadata=Metadata(\n created_at=datetime.datetime.fromisoformat(\n \"2024-01-15 09:30:00+00:00\",\n ),\n updated_at=datetime.datetime.fromisoformat(\n \"2024-01-15 09:30:00+00:00\",\n ),\n avatar=\"avatar\",\n activated=True,\n ),\n avatar=\"avatar\",\n)\n", + "async_client": "import asyncio\nimport datetime\n\nfrom seed import AsyncSeedNullable\nfrom seed.nullable import Metadata\n\nclient = AsyncSeedNullable(\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.nullable.create_user(\n username=\"username\",\n tags=[\"tags\", \"tags\"],\n metadata=Metadata(\n created_at=datetime.datetime.fromisoformat(\n \"2024-01-15 09:30:00+00:00\",\n ),\n updated_at=datetime.datetime.fromisoformat(\n \"2024-01-15 09:30:00+00:00\",\n ),\n avatar=\"avatar\",\n activated=True,\n ),\n avatar=\"avatar\",\n )\n\n\nasyncio.run(main())\n", + "type": "python" + } + }, + { + "example_identifier": "default", + "id": { + "path": "/users", + "method": "DELETE", + "identifier_override": "endpoint_nullable.deleteUser" + }, + "snippet": { + "sync_client": "from seed import SeedNullable\n\nclient = SeedNullable(\n base_url=\"https://yourhost.com/path/to/api\",\n)\nclient.nullable.delete_user(\n username=\"xy\",\n)\n", + "async_client": "import asyncio\n\nfrom seed import AsyncSeedNullable\n\nclient = AsyncSeedNullable(\n base_url=\"https://yourhost.com/path/to/api\",\n)\n\n\nasync def main() -> None:\n await client.nullable.delete_user(\n username=\"xy\",\n )\n\n\nasyncio.run(main())\n", + "type": "python" + } + } + ] +} \ No newline at end of file diff --git a/seed/python-sdk/nullable/src/seed/__init__.py b/seed/python-sdk/nullable/src/seed/__init__.py new file mode 100644 index 00000000000..8038cadd7f0 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/__init__.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +from . import nullable +from .client import AsyncSeedNullable, SeedNullable +from .nullable import Metadata, User +from .version import __version__ + +__all__ = ["AsyncSeedNullable", "Metadata", "SeedNullable", "User", "__version__", "nullable"] diff --git a/seed/python-sdk/nullable/src/seed/client.py b/seed/python-sdk/nullable/src/seed/client.py new file mode 100644 index 00000000000..81638bb8134 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/client.py @@ -0,0 +1,104 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +import httpx +from .core.client_wrapper import SyncClientWrapper +from .nullable.client import NullableClient +from .core.client_wrapper import AsyncClientWrapper +from .nullable.client import AsyncNullableClient + + +class SeedNullable: + """ + Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions. + + Parameters + ---------- + base_url : str + The base url to use for requests from the client. + + timeout : typing.Optional[float] + The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced. + + follow_redirects : typing.Optional[bool] + Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in. + + httpx_client : typing.Optional[httpx.Client] + The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration. + + Examples + -------- + from seed import SeedNullable + + client = SeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + """ + + def __init__( + self, + *, + base_url: str, + timeout: typing.Optional[float] = None, + follow_redirects: typing.Optional[bool] = True, + httpx_client: typing.Optional[httpx.Client] = None, + ): + _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None + self._client_wrapper = SyncClientWrapper( + base_url=base_url, + httpx_client=httpx_client + if httpx_client is not None + else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects) + if follow_redirects is not None + else httpx.Client(timeout=_defaulted_timeout), + timeout=_defaulted_timeout, + ) + self.nullable = NullableClient(client_wrapper=self._client_wrapper) + + +class AsyncSeedNullable: + """ + Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions. + + Parameters + ---------- + base_url : str + The base url to use for requests from the client. + + timeout : typing.Optional[float] + The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced. + + follow_redirects : typing.Optional[bool] + Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in. + + httpx_client : typing.Optional[httpx.AsyncClient] + The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration. + + Examples + -------- + from seed import AsyncSeedNullable + + client = AsyncSeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + """ + + def __init__( + self, + *, + base_url: str, + timeout: typing.Optional[float] = None, + follow_redirects: typing.Optional[bool] = True, + httpx_client: typing.Optional[httpx.AsyncClient] = None, + ): + _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None + self._client_wrapper = AsyncClientWrapper( + base_url=base_url, + httpx_client=httpx_client + if httpx_client is not None + else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects) + if follow_redirects is not None + else httpx.AsyncClient(timeout=_defaulted_timeout), + timeout=_defaulted_timeout, + ) + self.nullable = AsyncNullableClient(client_wrapper=self._client_wrapper) diff --git a/seed/python-sdk/nullable/src/seed/core/__init__.py b/seed/python-sdk/nullable/src/seed/core/__init__.py new file mode 100644 index 00000000000..f03aecbfe18 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/__init__.py @@ -0,0 +1,47 @@ +# This file was auto-generated by Fern from our API Definition. + +from .api_error import ApiError +from .client_wrapper import AsyncClientWrapper, BaseClientWrapper, SyncClientWrapper +from .datetime_utils import serialize_datetime +from .file import File, convert_file_dict_to_httpx_tuples, with_content_type +from .http_client import AsyncHttpClient, HttpClient +from .jsonable_encoder import jsonable_encoder +from .pydantic_utilities import ( + IS_PYDANTIC_V2, + UniversalBaseModel, + UniversalRootModel, + parse_obj_as, + universal_field_validator, + universal_root_validator, + update_forward_refs, +) +from .query_encoder import encode_query +from .remove_none_from_dict import remove_none_from_dict +from .request_options import RequestOptions +from .serialization import FieldMetadata, convert_and_respect_annotation_metadata + +__all__ = [ + "ApiError", + "AsyncClientWrapper", + "AsyncHttpClient", + "BaseClientWrapper", + "FieldMetadata", + "File", + "HttpClient", + "IS_PYDANTIC_V2", + "RequestOptions", + "SyncClientWrapper", + "UniversalBaseModel", + "UniversalRootModel", + "convert_and_respect_annotation_metadata", + "convert_file_dict_to_httpx_tuples", + "encode_query", + "jsonable_encoder", + "parse_obj_as", + "remove_none_from_dict", + "serialize_datetime", + "universal_field_validator", + "universal_root_validator", + "update_forward_refs", + "with_content_type", +] diff --git a/seed/python-sdk/nullable/src/seed/core/api_error.py b/seed/python-sdk/nullable/src/seed/core/api_error.py new file mode 100644 index 00000000000..2e9fc5431cd --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/api_error.py @@ -0,0 +1,15 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + + +class ApiError(Exception): + status_code: typing.Optional[int] + body: typing.Any + + def __init__(self, *, status_code: typing.Optional[int] = None, body: typing.Any = None): + self.status_code = status_code + self.body = body + + def __str__(self) -> str: + return f"status_code: {self.status_code}, body: {self.body}" diff --git a/seed/python-sdk/nullable/src/seed/core/client_wrapper.py b/seed/python-sdk/nullable/src/seed/core/client_wrapper.py new file mode 100644 index 00000000000..0067b55174c --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/client_wrapper.py @@ -0,0 +1,48 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +import httpx +from .http_client import HttpClient +from .http_client import AsyncHttpClient + + +class BaseClientWrapper: + def __init__(self, *, base_url: str, timeout: typing.Optional[float] = None): + self._base_url = base_url + self._timeout = timeout + + def get_headers(self) -> typing.Dict[str, str]: + headers: typing.Dict[str, str] = { + "X-Fern-Language": "Python", + "X-Fern-SDK-Name": "fern_nullable", + "X-Fern-SDK-Version": "0.0.1", + } + return headers + + def get_base_url(self) -> str: + return self._base_url + + def get_timeout(self) -> typing.Optional[float]: + return self._timeout + + +class SyncClientWrapper(BaseClientWrapper): + def __init__(self, *, base_url: str, timeout: typing.Optional[float] = None, httpx_client: httpx.Client): + super().__init__(base_url=base_url, timeout=timeout) + self.httpx_client = HttpClient( + httpx_client=httpx_client, + base_headers=self.get_headers, + base_timeout=self.get_timeout, + base_url=self.get_base_url, + ) + + +class AsyncClientWrapper(BaseClientWrapper): + def __init__(self, *, base_url: str, timeout: typing.Optional[float] = None, httpx_client: httpx.AsyncClient): + super().__init__(base_url=base_url, timeout=timeout) + self.httpx_client = AsyncHttpClient( + httpx_client=httpx_client, + base_headers=self.get_headers, + base_timeout=self.get_timeout, + base_url=self.get_base_url, + ) diff --git a/seed/python-sdk/nullable/src/seed/core/datetime_utils.py b/seed/python-sdk/nullable/src/seed/core/datetime_utils.py new file mode 100644 index 00000000000..7c9864a944c --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/datetime_utils.py @@ -0,0 +1,28 @@ +# 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) diff --git a/seed/python-sdk/nullable/src/seed/core/file.py b/seed/python-sdk/nullable/src/seed/core/file.py new file mode 100644 index 00000000000..44b0d27c089 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/file.py @@ -0,0 +1,67 @@ +# This file was auto-generated by Fern from our API Definition. + +from typing import IO, Dict, List, Mapping, Optional, Tuple, Union, cast + +# File typing inspired by the flexibility of types within the httpx library +# https://github.com/encode/httpx/blob/master/httpx/_types.py +FileContent = Union[IO[bytes], bytes, str] +File = Union[ + # file (or bytes) + FileContent, + # (filename, file (or bytes)) + Tuple[Optional[str], FileContent], + # (filename, file (or bytes), content_type) + Tuple[Optional[str], FileContent, Optional[str]], + # (filename, file (or bytes), content_type, headers) + Tuple[ + Optional[str], + FileContent, + Optional[str], + Mapping[str, str], + ], +] + + +def convert_file_dict_to_httpx_tuples( + d: Dict[str, Union[File, List[File]]], +) -> List[Tuple[str, File]]: + """ + The format we use is a list of tuples, where the first element is the + name of the file and the second is the file object. Typically HTTPX wants + a dict, but to be able to send lists of files, you have to use the list + approach (which also works for non-lists) + https://github.com/encode/httpx/pull/1032 + """ + + httpx_tuples = [] + for key, file_like in d.items(): + if isinstance(file_like, list): + for file_like_item in file_like: + httpx_tuples.append((key, file_like_item)) + else: + httpx_tuples.append((key, file_like)) + return httpx_tuples + + +def with_content_type(*, file: File, default_content_type: str) -> File: + """ + This function resolves to the file's content type, if provided, and defaults + to the default_content_type value if not. + """ + if isinstance(file, tuple): + if len(file) == 2: + filename, content = cast(Tuple[Optional[str], FileContent], file) # type: ignore + return (filename, content, default_content_type) + elif len(file) == 3: + filename, content, file_content_type = cast(Tuple[Optional[str], FileContent, Optional[str]], file) # type: ignore + out_content_type = file_content_type or default_content_type + return (filename, content, out_content_type) + elif len(file) == 4: + filename, content, file_content_type, headers = cast( # type: ignore + Tuple[Optional[str], FileContent, Optional[str], Mapping[str, str]], file + ) + out_content_type = file_content_type or default_content_type + return (filename, content, out_content_type, headers) + else: + raise ValueError(f"Unexpected tuple length: {len(file)}") + return (None, file, default_content_type) diff --git a/seed/python-sdk/nullable/src/seed/core/http_client.py b/seed/python-sdk/nullable/src/seed/core/http_client.py new file mode 100644 index 00000000000..17b942cda4a --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/http_client.py @@ -0,0 +1,499 @@ +# This file was auto-generated by Fern from our API Definition. + +import asyncio +import email.utils +import json +import re +import time +import typing +import urllib.parse +from contextlib import asynccontextmanager, contextmanager +from random import random + +import httpx + +from .file import File, convert_file_dict_to_httpx_tuples +from .jsonable_encoder import jsonable_encoder +from .query_encoder import encode_query +from .remove_none_from_dict import remove_none_from_dict +from .request_options import RequestOptions + +INITIAL_RETRY_DELAY_SECONDS = 0.5 +MAX_RETRY_DELAY_SECONDS = 10 +MAX_RETRY_DELAY_SECONDS_FROM_HEADER = 30 + + +def _parse_retry_after(response_headers: httpx.Headers) -> typing.Optional[float]: + """ + This function parses the `Retry-After` header in a HTTP response and returns the number of seconds to wait. + + Inspired by the urllib3 retry implementation. + """ + retry_after_ms = response_headers.get("retry-after-ms") + if retry_after_ms is not None: + try: + return int(retry_after_ms) / 1000 if retry_after_ms > 0 else 0 + except Exception: + pass + + retry_after = response_headers.get("retry-after") + if retry_after is None: + return None + + # Attempt to parse the header as an int. + if re.match(r"^\s*[0-9]+\s*$", retry_after): + seconds = float(retry_after) + # Fallback to parsing it as a date. + else: + retry_date_tuple = email.utils.parsedate_tz(retry_after) + if retry_date_tuple is None: + return None + if retry_date_tuple[9] is None: # Python 2 + # Assume UTC if no timezone was specified + # On Python2.7, parsedate_tz returns None for a timezone offset + # instead of 0 if no timezone is given, where mktime_tz treats + # a None timezone offset as local time. + retry_date_tuple = retry_date_tuple[:9] + (0,) + retry_date_tuple[10:] + + retry_date = email.utils.mktime_tz(retry_date_tuple) + seconds = retry_date - time.time() + + if seconds < 0: + seconds = 0 + + return seconds + + +def _retry_timeout(response: httpx.Response, retries: int) -> float: + """ + Determine the amount of time to wait before retrying a request. + This function begins by trying to parse a retry-after header from the response, and then proceeds to use exponential backoff + with a jitter to determine the number of seconds to wait. + """ + + # If the API asks us to wait a certain amount of time (and it's a reasonable amount), just do what it says. + retry_after = _parse_retry_after(response.headers) + if retry_after is not None and retry_after <= MAX_RETRY_DELAY_SECONDS_FROM_HEADER: + return retry_after + + # Apply exponential backoff, capped at MAX_RETRY_DELAY_SECONDS. + retry_delay = min(INITIAL_RETRY_DELAY_SECONDS * pow(2.0, retries), MAX_RETRY_DELAY_SECONDS) + + # Add a randomness / jitter to the retry delay to avoid overwhelming the server with retries. + timeout = retry_delay * (1 - 0.25 * random()) + return timeout if timeout >= 0 else 0 + + +def _should_retry(response: httpx.Response) -> bool: + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s + + +def remove_omit_from_dict( + original: typing.Dict[str, typing.Optional[typing.Any]], + omit: typing.Optional[typing.Any], +) -> typing.Dict[str, typing.Any]: + if omit is None: + return original + new: typing.Dict[str, typing.Any] = {} + for key, value in original.items(): + if value is not omit: + new[key] = value + return new + + +def maybe_filter_request_body( + data: typing.Optional[typing.Any], + request_options: typing.Optional[RequestOptions], + omit: typing.Optional[typing.Any], +) -> typing.Optional[typing.Any]: + if data is None: + return ( + jsonable_encoder(request_options.get("additional_body_parameters", {})) or {} + if request_options is not None + else None + ) + elif not isinstance(data, typing.Mapping): + data_content = jsonable_encoder(data) + else: + data_content = { + **(jsonable_encoder(remove_omit_from_dict(data, omit))), # type: ignore + **( + jsonable_encoder(request_options.get("additional_body_parameters", {})) or {} + if request_options is not None + else {} + ), + } + return data_content + + +# Abstracted out for testing purposes +def get_request_body( + *, + json: typing.Optional[typing.Any], + data: typing.Optional[typing.Any], + request_options: typing.Optional[RequestOptions], + omit: typing.Optional[typing.Any], +) -> typing.Tuple[typing.Optional[typing.Any], typing.Optional[typing.Any]]: + json_body = None + data_body = None + if data is not None: + data_body = maybe_filter_request_body(data, request_options, omit) + else: + # If both data and json are None, we send json data in the event extra properties are specified + json_body = maybe_filter_request_body(json, request_options, omit) + + # If you have an empty JSON body, you should just send None + return (json_body if json_body != {} else None), data_body if data_body != {} else None + + +class HttpClient: + def __init__( + self, + *, + httpx_client: httpx.Client, + base_timeout: typing.Callable[[], typing.Optional[float]], + base_headers: typing.Callable[[], typing.Dict[str, str]], + base_url: typing.Optional[typing.Callable[[], str]] = None, + ): + self.base_url = base_url + self.base_timeout = base_timeout + self.base_headers = base_headers + self.httpx_client = httpx_client + + def get_base_url(self, maybe_base_url: typing.Optional[str]) -> str: + base_url = maybe_base_url + if self.base_url is not None and base_url is None: + base_url = self.base_url() + + if base_url is None: + raise ValueError("A base_url is required to make this request, please provide one and try again.") + return base_url + + def request( + self, + path: typing.Optional[str] = None, + *, + method: str, + base_url: typing.Optional[str] = None, + params: typing.Optional[typing.Dict[str, typing.Any]] = None, + json: typing.Optional[typing.Any] = None, + data: typing.Optional[typing.Any] = None, + content: typing.Optional[typing.Union[bytes, typing.Iterator[bytes], typing.AsyncIterator[bytes]]] = None, + files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None, + headers: typing.Optional[typing.Dict[str, typing.Any]] = None, + request_options: typing.Optional[RequestOptions] = None, + retries: int = 0, + omit: typing.Optional[typing.Any] = None, + ) -> httpx.Response: + base_url = self.get_base_url(base_url) + timeout = ( + request_options.get("timeout_in_seconds") + if request_options is not None and request_options.get("timeout_in_seconds") is not None + else self.base_timeout() + ) + + json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + + response = self.httpx_client.request( + method=method, + url=urllib.parse.urljoin(f"{base_url}/", path), + headers=jsonable_encoder( + remove_none_from_dict( + { + **self.base_headers(), + **(headers if headers is not None else {}), + **(request_options.get("additional_headers", {}) or {} if request_options is not None else {}), + } + ) + ), + params=encode_query( + jsonable_encoder( + remove_none_from_dict( + remove_omit_from_dict( + { + **(params if params is not None else {}), + **( + request_options.get("additional_query_parameters", {}) or {} + if request_options is not None + else {} + ), + }, + omit, + ) + ) + ) + ), + json=json_body, + data=data_body, + content=content, + files=( + convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) + if (files is not None and files is not omit) + else None + ), + timeout=timeout, + ) + + max_retries: int = request_options.get("max_retries", 0) if request_options is not None else 0 + if _should_retry(response=response): + if max_retries > retries: + time.sleep(_retry_timeout(response=response, retries=retries)) + return self.request( + path=path, + method=method, + base_url=base_url, + params=params, + json=json, + content=content, + files=files, + headers=headers, + request_options=request_options, + retries=retries + 1, + omit=omit, + ) + + return response + + @contextmanager + def stream( + self, + path: typing.Optional[str] = None, + *, + method: str, + base_url: typing.Optional[str] = None, + params: typing.Optional[typing.Dict[str, typing.Any]] = None, + json: typing.Optional[typing.Any] = None, + data: typing.Optional[typing.Any] = None, + content: typing.Optional[typing.Union[bytes, typing.Iterator[bytes], typing.AsyncIterator[bytes]]] = None, + files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None, + headers: typing.Optional[typing.Dict[str, typing.Any]] = None, + request_options: typing.Optional[RequestOptions] = None, + retries: int = 0, + omit: typing.Optional[typing.Any] = None, + ) -> typing.Iterator[httpx.Response]: + base_url = self.get_base_url(base_url) + timeout = ( + request_options.get("timeout_in_seconds") + if request_options is not None and request_options.get("timeout_in_seconds") is not None + else self.base_timeout() + ) + + json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + + with self.httpx_client.stream( + method=method, + url=urllib.parse.urljoin(f"{base_url}/", path), + headers=jsonable_encoder( + remove_none_from_dict( + { + **self.base_headers(), + **(headers if headers is not None else {}), + **(request_options.get("additional_headers", {}) if request_options is not None else {}), + } + ) + ), + params=encode_query( + jsonable_encoder( + remove_none_from_dict( + remove_omit_from_dict( + { + **(params if params is not None else {}), + **( + request_options.get("additional_query_parameters", {}) + if request_options is not None + else {} + ), + }, + omit, + ) + ) + ) + ), + json=json_body, + data=data_body, + content=content, + files=( + convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) + if (files is not None and files is not omit) + else None + ), + timeout=timeout, + ) as stream: + yield stream + + +class AsyncHttpClient: + def __init__( + self, + *, + httpx_client: httpx.AsyncClient, + base_timeout: typing.Callable[[], typing.Optional[float]], + base_headers: typing.Callable[[], typing.Dict[str, str]], + base_url: typing.Optional[typing.Callable[[], str]] = None, + ): + self.base_url = base_url + self.base_timeout = base_timeout + self.base_headers = base_headers + self.httpx_client = httpx_client + + def get_base_url(self, maybe_base_url: typing.Optional[str]) -> str: + base_url = maybe_base_url + if self.base_url is not None and base_url is None: + base_url = self.base_url() + + if base_url is None: + raise ValueError("A base_url is required to make this request, please provide one and try again.") + return base_url + + async def request( + self, + path: typing.Optional[str] = None, + *, + method: str, + base_url: typing.Optional[str] = None, + params: typing.Optional[typing.Dict[str, typing.Any]] = None, + json: typing.Optional[typing.Any] = None, + data: typing.Optional[typing.Any] = None, + content: typing.Optional[typing.Union[bytes, typing.Iterator[bytes], typing.AsyncIterator[bytes]]] = None, + files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None, + headers: typing.Optional[typing.Dict[str, typing.Any]] = None, + request_options: typing.Optional[RequestOptions] = None, + retries: int = 0, + omit: typing.Optional[typing.Any] = None, + ) -> httpx.Response: + base_url = self.get_base_url(base_url) + timeout = ( + request_options.get("timeout_in_seconds") + if request_options is not None and request_options.get("timeout_in_seconds") is not None + else self.base_timeout() + ) + + json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + + # Add the input to each of these and do None-safety checks + response = await self.httpx_client.request( + method=method, + url=urllib.parse.urljoin(f"{base_url}/", path), + headers=jsonable_encoder( + remove_none_from_dict( + { + **self.base_headers(), + **(headers if headers is not None else {}), + **(request_options.get("additional_headers", {}) or {} if request_options is not None else {}), + } + ) + ), + params=encode_query( + jsonable_encoder( + remove_none_from_dict( + remove_omit_from_dict( + { + **(params if params is not None else {}), + **( + request_options.get("additional_query_parameters", {}) or {} + if request_options is not None + else {} + ), + }, + omit, + ) + ) + ) + ), + json=json_body, + data=data_body, + content=content, + files=( + convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) + if files is not None + else None + ), + timeout=timeout, + ) + + max_retries: int = request_options.get("max_retries", 0) if request_options is not None else 0 + if _should_retry(response=response): + if max_retries > retries: + await asyncio.sleep(_retry_timeout(response=response, retries=retries)) + return await self.request( + path=path, + method=method, + base_url=base_url, + params=params, + json=json, + content=content, + files=files, + headers=headers, + request_options=request_options, + retries=retries + 1, + omit=omit, + ) + return response + + @asynccontextmanager + async def stream( + self, + path: typing.Optional[str] = None, + *, + method: str, + base_url: typing.Optional[str] = None, + params: typing.Optional[typing.Dict[str, typing.Any]] = None, + json: typing.Optional[typing.Any] = None, + data: typing.Optional[typing.Any] = None, + content: typing.Optional[typing.Union[bytes, typing.Iterator[bytes], typing.AsyncIterator[bytes]]] = None, + files: typing.Optional[typing.Dict[str, typing.Optional[typing.Union[File, typing.List[File]]]]] = None, + headers: typing.Optional[typing.Dict[str, typing.Any]] = None, + request_options: typing.Optional[RequestOptions] = None, + retries: int = 0, + omit: typing.Optional[typing.Any] = None, + ) -> typing.AsyncIterator[httpx.Response]: + base_url = self.get_base_url(base_url) + timeout = ( + request_options.get("timeout_in_seconds") + if request_options is not None and request_options.get("timeout_in_seconds") is not None + else self.base_timeout() + ) + + json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + + async with self.httpx_client.stream( + method=method, + url=urllib.parse.urljoin(f"{base_url}/", path), + headers=jsonable_encoder( + remove_none_from_dict( + { + **self.base_headers(), + **(headers if headers is not None else {}), + **(request_options.get("additional_headers", {}) if request_options is not None else {}), + } + ) + ), + params=encode_query( + jsonable_encoder( + remove_none_from_dict( + remove_omit_from_dict( + { + **(params if params is not None else {}), + **( + request_options.get("additional_query_parameters", {}) + if request_options is not None + else {} + ), + }, + omit=omit, + ) + ) + ) + ), + json=json_body, + data=data_body, + content=content, + files=( + convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) + if files is not None + else None + ), + timeout=timeout, + ) as stream: + yield stream diff --git a/seed/python-sdk/nullable/src/seed/core/jsonable_encoder.py b/seed/python-sdk/nullable/src/seed/core/jsonable_encoder.py new file mode 100644 index 00000000000..1b631e9017c --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/jsonable_encoder.py @@ -0,0 +1,101 @@ +# This file was auto-generated by Fern from our API Definition. + +""" +jsonable_encoder converts a Python object to a JSON-friendly dict +(e.g. datetimes to strings, Pydantic models to dicts). + +Taken from FastAPI, and made a bit simpler +https://github.com/tiangolo/fastapi/blob/master/fastapi/encoders.py +""" + +import base64 +import dataclasses +import datetime as dt +from enum import Enum +from pathlib import PurePath +from types import GeneratorType +from typing import Any, Callable, Dict, List, Optional, Set, Union + +import pydantic + +from .datetime_utils import serialize_datetime +from .pydantic_utilities import ( + IS_PYDANTIC_V2, + encode_by_type, + to_jsonable_with_fallback, +) + +SetIntStr = Set[Union[int, str]] +DictIntStrAny = Dict[Union[int, str], Any] + + +def jsonable_encoder(obj: Any, custom_encoder: Optional[Dict[Any, Callable[[Any], Any]]] = None) -> Any: + custom_encoder = custom_encoder or {} + if custom_encoder: + if type(obj) in custom_encoder: + return custom_encoder[type(obj)](obj) + else: + for encoder_type, encoder_instance in custom_encoder.items(): + if isinstance(obj, encoder_type): + return encoder_instance(obj) + if isinstance(obj, pydantic.BaseModel): + if IS_PYDANTIC_V2: + encoder = getattr(obj.model_config, "json_encoders", {}) # type: ignore # Pydantic v2 + else: + encoder = getattr(obj.__config__, "json_encoders", {}) # type: ignore # Pydantic v1 + if custom_encoder: + encoder.update(custom_encoder) + obj_dict = obj.dict(by_alias=True) + if "__root__" in obj_dict: + obj_dict = obj_dict["__root__"] + if "root" in obj_dict: + obj_dict = obj_dict["root"] + return jsonable_encoder(obj_dict, custom_encoder=encoder) + if dataclasses.is_dataclass(obj): + obj_dict = dataclasses.asdict(obj) # type: ignore + return jsonable_encoder(obj_dict, custom_encoder=custom_encoder) + if isinstance(obj, bytes): + return base64.b64encode(obj).decode("utf-8") + if isinstance(obj, Enum): + return obj.value + if isinstance(obj, PurePath): + return str(obj) + if isinstance(obj, (str, int, float, type(None))): + return obj + if isinstance(obj, dt.datetime): + return serialize_datetime(obj) + if isinstance(obj, dt.date): + return str(obj) + if isinstance(obj, dict): + encoded_dict = {} + allowed_keys = set(obj.keys()) + for key, value in obj.items(): + if key in allowed_keys: + encoded_key = jsonable_encoder(key, custom_encoder=custom_encoder) + encoded_value = jsonable_encoder(value, custom_encoder=custom_encoder) + encoded_dict[encoded_key] = encoded_value + return encoded_dict + if isinstance(obj, (list, set, frozenset, GeneratorType, tuple)): + encoded_list = [] + for item in obj: + encoded_list.append(jsonable_encoder(item, custom_encoder=custom_encoder)) + return encoded_list + + def fallback_serializer(o: Any) -> Any: + attempt_encode = encode_by_type(o) + if attempt_encode is not None: + return attempt_encode + + try: + data = dict(o) + except Exception as e: + errors: List[Exception] = [] + errors.append(e) + try: + data = vars(o) + except Exception as e: + errors.append(e) + raise ValueError(errors) from e + return jsonable_encoder(data, custom_encoder=custom_encoder) + + return to_jsonable_with_fallback(obj, fallback_serializer) diff --git a/seed/python-sdk/nullable/src/seed/core/pydantic_utilities.py b/seed/python-sdk/nullable/src/seed/core/pydantic_utilities.py new file mode 100644 index 00000000000..ca1f4792962 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/pydantic_utilities.py @@ -0,0 +1,296 @@ +# This file was auto-generated by Fern from our API Definition. + +# nopycln: file +import datetime as dt +import typing +from collections import defaultdict + +import typing_extensions + +import pydantic + +from .datetime_utils import serialize_datetime +from .serialization import convert_and_respect_annotation_metadata + +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 ( # pyright: ignore[reportMissingImports] # Pydantic v2 + get_origin as get_origin, + ) + from pydantic.v1.typing import ( # pyright: ignore[reportMissingImports] # Pydantic v2 + is_literal_type as is_literal_type, + ) + from pydantic.v1.typing import ( # pyright: ignore[reportMissingImports] # Pydantic v2 + is_union as is_union, + ) + 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 parse_obj_as(type_: typing.Type[T], object_: typing.Any) -> T: + dealiased_object = convert_and_respect_annotation_metadata(object_=object_, annotation=type_, direction="read") + if IS_PYDANTIC_V2: + adapter = pydantic.TypeAdapter(type_) # type: ignore # Pydantic v2 + return adapter.validate_python(dealiased_object) + else: + return pydantic.parse_obj_as(type_, dealiased_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): + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( + # Allow fields beginning with `model_` to be used in the model + protected_namespaces=(), + ) # type: ignore # Pydantic v2 + + @pydantic.model_serializer(mode="wrap", when_used="json") # type: ignore # Pydantic v2 + def serialize_model(self, handler: pydantic.SerializerFunctionWrapHandler) -> typing.Any: # type: ignore # Pydantic v2 + serialized = handler(self) + data = {k: serialize_datetime(v) if isinstance(v, dt.datetime) else v for k, v in serialized.items()} + return data + + else: + + class Config: + smart_union = True + json_encoders = {dt.datetime: serialize_datetime} + + @classmethod + def model_construct( + cls: typing.Type["Model"], _fields_set: typing.Optional[typing.Set[str]] = None, **values: typing.Any + ) -> "Model": + dealiased_object = convert_and_respect_annotation_metadata(object_=values, annotation=cls, direction="read") + return cls.construct(_fields_set, **dealiased_object) + + @classmethod + def construct( + cls: typing.Type["Model"], _fields_set: typing.Optional[typing.Set[str]] = None, **values: typing.Any + ) -> "Model": + dealiased_object = convert_and_respect_annotation_metadata(object_=values, annotation=cls, direction="read") + if IS_PYDANTIC_V2: + return super().model_construct(_fields_set, **dealiased_object) # type: ignore # Pydantic v2 + else: + return super().construct(_fields_set, **dealiased_object) + + 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]: + """ + Override the default dict method to `exclude_unset` by default. This function patches + `exclude_unset` to work include fields within non-None default values. + """ + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 + # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. + # + # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models + # that we have less control over, and this is less intrusive than custom serializers for now. + if IS_PYDANTIC_V2: + kwargs_with_defaults_exclude_unset: typing.Any = { + **kwargs, + "by_alias": True, + "exclude_unset": True, + "exclude_none": False, + } + kwargs_with_defaults_exclude_none: typing.Any = { + **kwargs, + "by_alias": True, + "exclude_none": True, + "exclude_unset": False, + } + dict_dump = 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: + _fields_set = self.__fields_set__.copy() + + fields = _get_model_fields(self.__class__) + for name, field in fields.items(): + if name not in _fields_set: + default = _get_field_default(field) + + # If the default values are non-null act like they've been set + # This effectively allows exclude_unset to work like exclude_none where + # the latter passes through intentionally set none values. + if default is not None or ("exclude_unset" in kwargs and not kwargs["exclude_unset"]): + _fields_set.add(name) + + if default is not None: + self.__fields_set__.add(name) + + kwargs_with_defaults_exclude_unset_include_fields: typing.Any = { + "by_alias": True, + "exclude_unset": True, + "include": _fields_set, + **kwargs, + } + + dict_dump = super().dict(**kwargs_with_defaults_exclude_unset_include_fields) + + return convert_and_respect_annotation_metadata(object_=dict_dump, annotation=self.__class__, direction="write") + + +def _union_list_of_pydantic_dicts( + source: typing.List[typing.Any], destination: typing.List[typing.Any] +) -> typing.List[typing.Any]: + converted_list: typing.List[typing.Any] = [] + for i, item in enumerate(source): + destination_value = destination[i] # type: ignore + if isinstance(item, dict): + converted_list.append(deep_union_pydantic_dicts(item, destination_value)) + elif isinstance(item, list): + converted_list.append(_union_list_of_pydantic_dicts(item, destination_value)) + else: + converted_list.append(item) + return converted_list + + +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(): + node = destination.setdefault(key, {}) + if isinstance(value, dict): + deep_union_pydantic_dicts(value, node) + # Note: we do not do this same processing for sets given we do not have sets of models + # and given the sets are unordered, the processing of the set and matching objects would + # be non-trivial. + elif isinstance(value, list): + destination[key] = _union_list_of_pydantic_dicts(value, node) + else: + destination[key] = value + + return destination + + +if IS_PYDANTIC_V2: + + class V2RootModel(UniversalBaseModel, pydantic.RootModel): # type: ignore # Pydantic v2 + pass + + UniversalRootModel: typing_extensions.TypeAlias = V2RootModel # type: ignore +else: + UniversalRootModel: typing_extensions.TypeAlias = UniversalBaseModel # type: ignore + + +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(raise_errors=False) # 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: + if IS_PYDANTIC_V2: + return pydantic.model_validator(mode="before" if pre else "after")(func) # type: ignore # Pydantic v2 + else: + return pydantic.root_validator(pre=pre)(func) # type: ignore # Pydantic v1 + + return decorator + + +def universal_field_validator(field_name: str, pre: bool = False) -> typing.Callable[[AnyCallable], AnyCallable]: + def decorator(func: AnyCallable) -> AnyCallable: + if IS_PYDANTIC_V2: + return pydantic.field_validator(field_name, mode="before" if pre else "after")(func) # type: ignore # Pydantic v2 + else: + return pydantic.validator(field_name, pre=pre)(func) # type: ignore # Pydantic v1 + + return decorator + + +PydanticField = typing.Union[ModelField, pydantic.fields.FieldInfo] + + +def _get_model_fields( + model: typing.Type["Model"], +) -> typing.Mapping[str, PydanticField]: + if IS_PYDANTIC_V2: + return model.model_fields # type: ignore # Pydantic v2 + else: + return model.__fields__ # type: ignore # Pydantic v1 + + +def _get_field_default(field: PydanticField) -> typing.Any: + try: + value = field.get_default() # type: ignore # Pydantic < v1.10.15 + except: + value = field.default + if IS_PYDANTIC_V2: + from pydantic_core import PydanticUndefined + + if value == PydanticUndefined: + return None + return value + return value diff --git a/seed/python-sdk/nullable/src/seed/core/query_encoder.py b/seed/python-sdk/nullable/src/seed/core/query_encoder.py new file mode 100644 index 00000000000..3183001d404 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/query_encoder.py @@ -0,0 +1,58 @@ +# This file was auto-generated by Fern from our API Definition. + +from typing import Any, Dict, List, Optional, Tuple + +import pydantic + + +# Flattens dicts to be of the form {"key[subkey][subkey2]": value} where value is not a dict +def traverse_query_dict(dict_flat: Dict[str, Any], key_prefix: Optional[str] = None) -> List[Tuple[str, Any]]: + result = [] + for k, v in dict_flat.items(): + key = f"{key_prefix}[{k}]" if key_prefix is not None else k + if isinstance(v, dict): + result.extend(traverse_query_dict(v, key)) + elif isinstance(v, list): + for arr_v in v: + if isinstance(arr_v, dict): + result.extend(traverse_query_dict(arr_v, key)) + else: + result.append((key, arr_v)) + else: + result.append((key, v)) + return result + + +def single_query_encoder(query_key: str, query_value: Any) -> List[Tuple[str, Any]]: + if isinstance(query_value, pydantic.BaseModel) or isinstance(query_value, dict): + if isinstance(query_value, pydantic.BaseModel): + obj_dict = query_value.dict(by_alias=True) + else: + obj_dict = query_value + return traverse_query_dict(obj_dict, query_key) + elif isinstance(query_value, list): + encoded_values: List[Tuple[str, Any]] = [] + for value in query_value: + if isinstance(value, pydantic.BaseModel) or isinstance(value, dict): + if isinstance(value, pydantic.BaseModel): + obj_dict = value.dict(by_alias=True) + elif isinstance(value, dict): + obj_dict = value + + encoded_values.extend(single_query_encoder(query_key, obj_dict)) + else: + encoded_values.append((query_key, value)) + + return encoded_values + + return [(query_key, query_value)] + + +def encode_query(query: Optional[Dict[str, Any]]) -> Optional[List[Tuple[str, Any]]]: + if query is None: + return None + + encoded_query = [] + for k, v in query.items(): + encoded_query.extend(single_query_encoder(k, v)) + return encoded_query diff --git a/seed/python-sdk/nullable/src/seed/core/remove_none_from_dict.py b/seed/python-sdk/nullable/src/seed/core/remove_none_from_dict.py new file mode 100644 index 00000000000..c2298143f14 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/remove_none_from_dict.py @@ -0,0 +1,11 @@ +# This file was auto-generated by Fern from our API Definition. + +from typing import Any, Dict, Mapping, Optional + + +def remove_none_from_dict(original: Mapping[str, Optional[Any]]) -> Dict[str, Any]: + new: Dict[str, Any] = {} + for key, value in original.items(): + if value is not None: + new[key] = value + return new diff --git a/seed/python-sdk/nullable/src/seed/core/request_options.py b/seed/python-sdk/nullable/src/seed/core/request_options.py new file mode 100644 index 00000000000..1b38804432b --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/request_options.py @@ -0,0 +1,35 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +try: + from typing import NotRequired # type: ignore +except ImportError: + from typing_extensions import NotRequired + + +class RequestOptions(typing.TypedDict, total=False): + """ + Additional options for request-specific configuration when calling APIs via the SDK. + This is used primarily as an optional final parameter for service functions. + + Attributes: + - timeout_in_seconds: int. The number of seconds to await an API call before timing out. + + - max_retries: int. The max number of retries to attempt if the API call fails. + + - additional_headers: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's header dict + + - additional_query_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's query parameters dict + + - additional_body_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's body parameters dict + + - chunk_size: int. The size, in bytes, to process each chunk of data being streamed back within the response. This equates to leveraging `chunk_size` within `requests` or `httpx`, and is only leveraged for file downloads. + """ + + timeout_in_seconds: NotRequired[int] + max_retries: NotRequired[int] + additional_headers: NotRequired[typing.Dict[str, typing.Any]] + additional_query_parameters: NotRequired[typing.Dict[str, typing.Any]] + additional_body_parameters: NotRequired[typing.Dict[str, typing.Any]] + chunk_size: NotRequired[int] diff --git a/seed/python-sdk/nullable/src/seed/core/serialization.py b/seed/python-sdk/nullable/src/seed/core/serialization.py new file mode 100644 index 00000000000..cb5dcbf93a9 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/core/serialization.py @@ -0,0 +1,272 @@ +# This file was auto-generated by Fern from our API Definition. + +import collections +import inspect +import typing + +import typing_extensions + +import pydantic + + +class FieldMetadata: + """ + Metadata class used to annotate fields to provide additional information. + + Example: + class MyDict(TypedDict): + field: typing.Annotated[str, FieldMetadata(alias="field_name")] + + Will serialize: `{"field": "value"}` + To: `{"field_name": "value"}` + """ + + alias: str + + def __init__(self, *, alias: str) -> None: + self.alias = alias + + +def convert_and_respect_annotation_metadata( + *, + object_: typing.Any, + annotation: typing.Any, + inner_type: typing.Optional[typing.Any] = None, + direction: typing.Literal["read", "write"], +) -> typing.Any: + """ + Respect the metadata annotations on a field, such as aliasing. This function effectively + manipulates the dict-form of an object to respect the metadata annotations. This is primarily used for + TypedDicts, which cannot support aliasing out of the box, and can be extended for additional + utilities, such as defaults. + + Parameters + ---------- + object_ : typing.Any + + annotation : type + The type we're looking to apply typing annotations from + + inner_type : typing.Optional[type] + + Returns + ------- + typing.Any + """ + + if object_ is None: + return None + if inner_type is None: + inner_type = annotation + + clean_type = _remove_annotations(inner_type) + # Pydantic models + if ( + inspect.isclass(clean_type) + and issubclass(clean_type, pydantic.BaseModel) + and isinstance(object_, typing.Mapping) + ): + return _convert_mapping(object_, clean_type, direction) + # TypedDicts + if typing_extensions.is_typeddict(clean_type) and isinstance(object_, typing.Mapping): + return _convert_mapping(object_, clean_type, direction) + + if ( + typing_extensions.get_origin(clean_type) == typing.Dict + or typing_extensions.get_origin(clean_type) == dict + or clean_type == typing.Dict + ) and isinstance(object_, typing.Dict): + key_type = typing_extensions.get_args(clean_type)[0] + value_type = typing_extensions.get_args(clean_type)[1] + + return { + key: convert_and_respect_annotation_metadata( + object_=value, + annotation=annotation, + inner_type=value_type, + direction=direction, + ) + for key, value in object_.items() + } + + # If you're iterating on a string, do not bother to coerce it to a sequence. + if not isinstance(object_, str): + if ( + typing_extensions.get_origin(clean_type) == typing.Set + or typing_extensions.get_origin(clean_type) == set + or clean_type == typing.Set + ) and isinstance(object_, typing.Set): + inner_type = typing_extensions.get_args(clean_type)[0] + return { + convert_and_respect_annotation_metadata( + object_=item, + annotation=annotation, + inner_type=inner_type, + direction=direction, + ) + for item in object_ + } + elif ( + ( + typing_extensions.get_origin(clean_type) == typing.List + or typing_extensions.get_origin(clean_type) == list + or clean_type == typing.List + ) + and isinstance(object_, typing.List) + ) or ( + ( + typing_extensions.get_origin(clean_type) == typing.Sequence + or typing_extensions.get_origin(clean_type) == collections.abc.Sequence + or clean_type == typing.Sequence + ) + and isinstance(object_, typing.Sequence) + ): + inner_type = typing_extensions.get_args(clean_type)[0] + return [ + convert_and_respect_annotation_metadata( + object_=item, + annotation=annotation, + inner_type=inner_type, + direction=direction, + ) + for item in object_ + ] + + if typing_extensions.get_origin(clean_type) == typing.Union: + # We should be able to ~relatively~ safely try to convert keys against all + # member types in the union, the edge case here is if one member aliases a field + # of the same name to a different name from another member + # Or if another member aliases a field of the same name that another member does not. + for member in typing_extensions.get_args(clean_type): + object_ = convert_and_respect_annotation_metadata( + object_=object_, + annotation=annotation, + inner_type=member, + direction=direction, + ) + return object_ + + annotated_type = _get_annotation(annotation) + if annotated_type is None: + return object_ + + # If the object is not a TypedDict, a Union, or other container (list, set, sequence, etc.) + # Then we can safely call it on the recursive conversion. + return object_ + + +def _convert_mapping( + object_: typing.Mapping[str, object], + expected_type: typing.Any, + direction: typing.Literal["read", "write"], +) -> typing.Mapping[str, object]: + converted_object: typing.Dict[str, object] = {} + annotations = typing_extensions.get_type_hints(expected_type, include_extras=True) + aliases_to_field_names = _get_alias_to_field_name(annotations) + for key, value in object_.items(): + if direction == "read" and key in aliases_to_field_names: + dealiased_key = aliases_to_field_names.get(key) + if dealiased_key is not None: + type_ = annotations.get(dealiased_key) + else: + type_ = annotations.get(key) + # Note you can't get the annotation by the field name if you're in read mode, so you must check the aliases map + # + # So this is effectively saying if we're in write mode, and we don't have a type, or if we're in read mode and we don't have an alias + # then we can just pass the value through as is + if type_ is None: + converted_object[key] = value + elif direction == "read" and key not in aliases_to_field_names: + converted_object[key] = convert_and_respect_annotation_metadata( + object_=value, annotation=type_, direction=direction + ) + else: + converted_object[_alias_key(key, type_, direction, aliases_to_field_names)] = ( + convert_and_respect_annotation_metadata(object_=value, annotation=type_, direction=direction) + ) + return converted_object + + +def _get_annotation(type_: typing.Any) -> typing.Optional[typing.Any]: + maybe_annotated_type = typing_extensions.get_origin(type_) + if maybe_annotated_type is None: + return None + + if maybe_annotated_type == typing_extensions.NotRequired: + type_ = typing_extensions.get_args(type_)[0] + maybe_annotated_type = typing_extensions.get_origin(type_) + + if maybe_annotated_type == typing_extensions.Annotated: + return type_ + + return None + + +def _remove_annotations(type_: typing.Any) -> typing.Any: + maybe_annotated_type = typing_extensions.get_origin(type_) + if maybe_annotated_type is None: + return type_ + + if maybe_annotated_type == typing_extensions.NotRequired: + return _remove_annotations(typing_extensions.get_args(type_)[0]) + + if maybe_annotated_type == typing_extensions.Annotated: + return _remove_annotations(typing_extensions.get_args(type_)[0]) + + return type_ + + +def get_alias_to_field_mapping(type_: typing.Any) -> typing.Dict[str, str]: + annotations = typing_extensions.get_type_hints(type_, include_extras=True) + return _get_alias_to_field_name(annotations) + + +def get_field_to_alias_mapping(type_: typing.Any) -> typing.Dict[str, str]: + annotations = typing_extensions.get_type_hints(type_, include_extras=True) + return _get_field_to_alias_name(annotations) + + +def _get_alias_to_field_name( + field_to_hint: typing.Dict[str, typing.Any], +) -> typing.Dict[str, str]: + aliases = {} + for field, hint in field_to_hint.items(): + maybe_alias = _get_alias_from_type(hint) + if maybe_alias is not None: + aliases[maybe_alias] = field + return aliases + + +def _get_field_to_alias_name( + field_to_hint: typing.Dict[str, typing.Any], +) -> typing.Dict[str, str]: + aliases = {} + for field, hint in field_to_hint.items(): + maybe_alias = _get_alias_from_type(hint) + if maybe_alias is not None: + aliases[field] = maybe_alias + return aliases + + +def _get_alias_from_type(type_: typing.Any) -> typing.Optional[str]: + maybe_annotated_type = _get_annotation(type_) + + if maybe_annotated_type is not None: + # The actual annotations are 1 onward, the first is the annotated type + annotations = typing_extensions.get_args(maybe_annotated_type)[1:] + + for annotation in annotations: + if isinstance(annotation, FieldMetadata) and annotation.alias is not None: + return annotation.alias + return None + + +def _alias_key( + key: str, + type_: typing.Any, + direction: typing.Literal["read", "write"], + aliases_to_field_names: typing.Dict[str, str], +) -> str: + if direction == "read": + return aliases_to_field_names.get(key, key) + return _get_alias_from_type(type_=type_) or key diff --git a/seed/python-sdk/nullable/src/seed/nullable/__init__.py b/seed/python-sdk/nullable/src/seed/nullable/__init__.py new file mode 100644 index 00000000000..494365529fd --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/nullable/__init__.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +from .types import Metadata, User + +__all__ = ["Metadata", "User"] diff --git a/seed/python-sdk/nullable/src/seed/nullable/client.py b/seed/python-sdk/nullable/src/seed/nullable/client.py new file mode 100644 index 00000000000..520e102ef3b --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/nullable/client.py @@ -0,0 +1,448 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +from ..core.client_wrapper import SyncClientWrapper +from ..core.request_options import RequestOptions +from .types.user import User +from ..core.pydantic_utilities import parse_obj_as +from json.decoder import JSONDecodeError +from ..core.api_error import ApiError +from .types.metadata import Metadata +from ..core.serialization import convert_and_respect_annotation_metadata +from ..core.client_wrapper import AsyncClientWrapper + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class NullableClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def get_users( + self, + *, + usernames: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + avatar: typing.Optional[str] = None, + activated: typing.Optional[typing.Union[bool, typing.Sequence[bool]]] = None, + tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + extra: typing.Optional[bool] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> typing.List[User]: + """ + Parameters + ---------- + usernames : typing.Optional[typing.Union[str, typing.Sequence[str]]] + + avatar : typing.Optional[str] + + activated : typing.Optional[typing.Union[bool, typing.Sequence[bool]]] + + tags : typing.Optional[typing.Union[str, typing.Sequence[str]]] + + extra : typing.Optional[bool] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.List[User] + + Examples + -------- + from seed import SeedNullable + + client = SeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + client.nullable.get_users( + usernames="usernames", + avatar="avatar", + activated=True, + ) + """ + _response = self._client_wrapper.httpx_client.request( + "users", + method="GET", + params={ + "usernames": usernames, + "avatar": avatar, + "activated": activated, + "tags": tags, + "extra": extra, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return typing.cast( + typing.List[User], + parse_obj_as( + type_=typing.List[User], # type: ignore + object_=_response.json(), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, body=_response.text) + raise ApiError(status_code=_response.status_code, body=_response_json) + + def create_user( + self, + *, + username: str, + tags: typing.Optional[typing.Sequence[str]] = OMIT, + metadata: typing.Optional[Metadata] = OMIT, + avatar: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> User: + """ + Parameters + ---------- + username : str + + tags : typing.Optional[typing.Sequence[str]] + + metadata : typing.Optional[Metadata] + + avatar : typing.Optional[str] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + User + + Examples + -------- + import datetime + + from seed import SeedNullable + from seed.nullable import Metadata + + client = SeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + updated_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + avatar="avatar", + activated=True, + ), + avatar="avatar", + ) + """ + _response = self._client_wrapper.httpx_client.request( + "users", + method="POST", + json={ + "username": username, + "tags": tags, + "metadata": convert_and_respect_annotation_metadata( + object_=metadata, annotation=Metadata, direction="write" + ), + "avatar": avatar, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return typing.cast( + User, + parse_obj_as( + type_=User, # type: ignore + object_=_response.json(), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, body=_response.text) + raise ApiError(status_code=_response.status_code, body=_response_json) + + def delete_user( + self, *, username: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None + ) -> bool: + """ + Parameters + ---------- + username : typing.Optional[str] + The user to delete. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + bool + + Examples + -------- + from seed import SeedNullable + + client = SeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + client.nullable.delete_user( + username="xy", + ) + """ + _response = self._client_wrapper.httpx_client.request( + "users", + method="DELETE", + json={ + "username": username, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return typing.cast( + bool, + parse_obj_as( + type_=bool, # type: ignore + object_=_response.json(), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, body=_response.text) + raise ApiError(status_code=_response.status_code, body=_response_json) + + +class AsyncNullableClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def get_users( + self, + *, + usernames: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + avatar: typing.Optional[str] = None, + activated: typing.Optional[typing.Union[bool, typing.Sequence[bool]]] = None, + tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + extra: typing.Optional[bool] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> typing.List[User]: + """ + Parameters + ---------- + usernames : typing.Optional[typing.Union[str, typing.Sequence[str]]] + + avatar : typing.Optional[str] + + activated : typing.Optional[typing.Union[bool, typing.Sequence[bool]]] + + tags : typing.Optional[typing.Union[str, typing.Sequence[str]]] + + extra : typing.Optional[bool] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.List[User] + + Examples + -------- + import asyncio + + from seed import AsyncSeedNullable + + client = AsyncSeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + + + async def main() -> None: + await client.nullable.get_users( + usernames="usernames", + avatar="avatar", + activated=True, + ) + + + asyncio.run(main()) + """ + _response = await self._client_wrapper.httpx_client.request( + "users", + method="GET", + params={ + "usernames": usernames, + "avatar": avatar, + "activated": activated, + "tags": tags, + "extra": extra, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return typing.cast( + typing.List[User], + parse_obj_as( + type_=typing.List[User], # type: ignore + object_=_response.json(), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, body=_response.text) + raise ApiError(status_code=_response.status_code, body=_response_json) + + async def create_user( + self, + *, + username: str, + tags: typing.Optional[typing.Sequence[str]] = OMIT, + metadata: typing.Optional[Metadata] = OMIT, + avatar: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> User: + """ + Parameters + ---------- + username : str + + tags : typing.Optional[typing.Sequence[str]] + + metadata : typing.Optional[Metadata] + + avatar : typing.Optional[str] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + User + + Examples + -------- + import asyncio + import datetime + + from seed import AsyncSeedNullable + from seed.nullable import Metadata + + client = AsyncSeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + + + async def main() -> None: + await client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + updated_at=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + avatar="avatar", + activated=True, + ), + avatar="avatar", + ) + + + asyncio.run(main()) + """ + _response = await self._client_wrapper.httpx_client.request( + "users", + method="POST", + json={ + "username": username, + "tags": tags, + "metadata": convert_and_respect_annotation_metadata( + object_=metadata, annotation=Metadata, direction="write" + ), + "avatar": avatar, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return typing.cast( + User, + parse_obj_as( + type_=User, # type: ignore + object_=_response.json(), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, body=_response.text) + raise ApiError(status_code=_response.status_code, body=_response_json) + + async def delete_user( + self, *, username: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None + ) -> bool: + """ + Parameters + ---------- + username : typing.Optional[str] + The user to delete. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + bool + + Examples + -------- + import asyncio + + from seed import AsyncSeedNullable + + client = AsyncSeedNullable( + base_url="https://yourhost.com/path/to/api", + ) + + + async def main() -> None: + await client.nullable.delete_user( + username="xy", + ) + + + asyncio.run(main()) + """ + _response = await self._client_wrapper.httpx_client.request( + "users", + method="DELETE", + json={ + "username": username, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return typing.cast( + bool, + parse_obj_as( + type_=bool, # type: ignore + object_=_response.json(), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, body=_response.text) + raise ApiError(status_code=_response.status_code, body=_response_json) diff --git a/seed/python-sdk/nullable/src/seed/nullable/types/__init__.py b/seed/python-sdk/nullable/src/seed/nullable/types/__init__.py new file mode 100644 index 00000000000..ec062808130 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/nullable/types/__init__.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +from .metadata import Metadata +from .user import User + +__all__ = ["Metadata", "User"] diff --git a/seed/python-sdk/nullable/src/seed/nullable/types/metadata.py b/seed/python-sdk/nullable/src/seed/nullable/types/metadata.py new file mode 100644 index 00000000000..753f2d1a5ec --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/nullable/types/metadata.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +from ...core.pydantic_utilities import UniversalBaseModel +import typing_extensions +import datetime as dt +from ...core.serialization import FieldMetadata +import typing +from ...core.pydantic_utilities import IS_PYDANTIC_V2 +import pydantic + + +class Metadata(UniversalBaseModel): + created_at: typing_extensions.Annotated[dt.datetime, FieldMetadata(alias="createdAt")] + updated_at: typing_extensions.Annotated[dt.datetime, FieldMetadata(alias="updatedAt")] + avatar: typing.Optional[str] = None + activated: typing.Optional[bool] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/seed/python-sdk/nullable/src/seed/nullable/types/user.py b/seed/python-sdk/nullable/src/seed/nullable/types/user.py new file mode 100644 index 00000000000..2064d24df00 --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/nullable/types/user.py @@ -0,0 +1,22 @@ +# This file was auto-generated by Fern from our API Definition. + +from ...core.pydantic_utilities import UniversalBaseModel +import typing +from .metadata import Metadata +from ...core.pydantic_utilities import IS_PYDANTIC_V2 +import pydantic + + +class User(UniversalBaseModel): + name: str + tags: typing.Optional[typing.List[str]] = None + metadata: typing.Optional[Metadata] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/seed/python-sdk/nullable/src/seed/py.typed b/seed/python-sdk/nullable/src/seed/py.typed new file mode 100644 index 00000000000..e69de29bb2d diff --git a/seed/python-sdk/nullable/src/seed/version.py b/seed/python-sdk/nullable/src/seed/version.py new file mode 100644 index 00000000000..d34c4711f9e --- /dev/null +++ b/seed/python-sdk/nullable/src/seed/version.py @@ -0,0 +1,3 @@ +from importlib import metadata + +__version__ = metadata.version("fern_nullable") diff --git a/seed/python-sdk/nullable/tests/__init__.py b/seed/python-sdk/nullable/tests/__init__.py new file mode 100644 index 00000000000..f3ea2659bb1 --- /dev/null +++ b/seed/python-sdk/nullable/tests/__init__.py @@ -0,0 +1,2 @@ +# This file was auto-generated by Fern from our API Definition. + diff --git a/seed/python-sdk/nullable/tests/conftest.py b/seed/python-sdk/nullable/tests/conftest.py new file mode 100644 index 00000000000..f75da189f0d --- /dev/null +++ b/seed/python-sdk/nullable/tests/conftest.py @@ -0,0 +1,16 @@ +# This file was auto-generated by Fern from our API Definition. + +from seed import SeedNullable +import os +import pytest +from seed import AsyncSeedNullable + + +@pytest.fixture +def client() -> SeedNullable: + return SeedNullable(base_url=os.getenv("TESTS_BASE_URL", "base_url")) + + +@pytest.fixture +def async_client() -> AsyncSeedNullable: + return AsyncSeedNullable(base_url=os.getenv("TESTS_BASE_URL", "base_url")) diff --git a/seed/python-sdk/nullable/tests/custom/test_client.py b/seed/python-sdk/nullable/tests/custom/test_client.py new file mode 100644 index 00000000000..73f811f5ede --- /dev/null +++ b/seed/python-sdk/nullable/tests/custom/test_client.py @@ -0,0 +1,7 @@ +import pytest + + +# Get started with writing tests with pytest at https://docs.pytest.org +@pytest.mark.skip(reason="Unimplemented") +def test_client() -> None: + assert True == True diff --git a/seed/python-sdk/nullable/tests/test_nullable.py b/seed/python-sdk/nullable/tests/test_nullable.py new file mode 100644 index 00000000000..c1144c01a9c --- /dev/null +++ b/seed/python-sdk/nullable/tests/test_nullable.py @@ -0,0 +1,106 @@ +# This file was auto-generated by Fern from our API Definition. + +from seed import SeedNullable +from seed import AsyncSeedNullable +import typing +from .utilities import validate_response +from seed.nullable import Metadata +import datetime + + +async def test_get_users(client: SeedNullable, async_client: AsyncSeedNullable) -> None: + expected_response: typing.Any = [ + { + "name": "name", + "tags": ["tags", "tags"], + "metadata": { + "createdAt": "2024-01-15T09:30:00Z", + "updatedAt": "2024-01-15T09:30:00Z", + "avatar": "avatar", + "activated": True, + }, + }, + { + "name": "name", + "tags": ["tags", "tags"], + "metadata": { + "createdAt": "2024-01-15T09:30:00Z", + "updatedAt": "2024-01-15T09:30:00Z", + "avatar": "avatar", + "activated": True, + }, + }, + ] + expected_types: typing.Tuple[typing.Any, typing.Any] = ( + "list", + { + 0: { + "name": None, + "tags": ("list", {0: None, 1: None}), + "metadata": {"createdAt": "datetime", "updatedAt": "datetime", "avatar": None, "activated": None}, + }, + 1: { + "name": None, + "tags": ("list", {0: None, 1: None}), + "metadata": {"createdAt": "datetime", "updatedAt": "datetime", "avatar": None, "activated": None}, + }, + }, + ) + response = client.nullable.get_users(usernames="usernames", avatar="avatar", activated=True) + validate_response(response, expected_response, expected_types) + + async_response = await async_client.nullable.get_users(usernames="usernames", avatar="avatar", activated=True) + validate_response(async_response, expected_response, expected_types) + + +async def test_create_user(client: SeedNullable, async_client: AsyncSeedNullable) -> None: + expected_response: typing.Any = { + "name": "name", + "tags": ["tags", "tags"], + "metadata": { + "createdAt": "2024-01-15T09:30:00Z", + "updatedAt": "2024-01-15T09:30:00Z", + "avatar": "avatar", + "activated": True, + }, + } + expected_types: typing.Any = { + "name": None, + "tags": ("list", {0: None, 1: None}), + "metadata": {"createdAt": "datetime", "updatedAt": "datetime", "avatar": None, "activated": None}, + } + response = client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat("2024-01-15 09:30:00+00:00"), + updated_at=datetime.datetime.fromisoformat("2024-01-15 09:30:00+00:00"), + avatar="avatar", + activated=True, + ), + avatar="avatar", + ) + validate_response(response, expected_response, expected_types) + + async_response = await async_client.nullable.create_user( + username="username", + tags=["tags", "tags"], + metadata=Metadata( + created_at=datetime.datetime.fromisoformat("2024-01-15 09:30:00+00:00"), + updated_at=datetime.datetime.fromisoformat("2024-01-15 09:30:00+00:00"), + avatar="avatar", + activated=True, + ), + avatar="avatar", + ) + validate_response(async_response, expected_response, expected_types) + + +async def test_delete_user(client: SeedNullable, async_client: AsyncSeedNullable) -> None: + expected_response: typing.Any = True + expected_types: typing.Any = None + response = client.nullable.delete_user(username="xy") + validate_response(response, expected_response, expected_types) + + async_response = await async_client.nullable.delete_user(username="xy") + validate_response(async_response, expected_response, expected_types) diff --git a/seed/python-sdk/nullable/tests/utilities.py b/seed/python-sdk/nullable/tests/utilities.py new file mode 100644 index 00000000000..3d228806a9c --- /dev/null +++ b/seed/python-sdk/nullable/tests/utilities.py @@ -0,0 +1,162 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +import uuid + +from dateutil import parser + +import pydantic + + +def cast_field(json_expectation: typing.Any, type_expectation: typing.Any) -> typing.Any: + # Cast these specific types which come through as string and expect our + # models to cast to the correct type. + if type_expectation == "uuid": + return uuid.UUID(json_expectation) + elif type_expectation == "date": + return parser.parse(json_expectation).date() + elif type_expectation == "datetime": + return parser.parse(json_expectation) + elif type_expectation == "set": + return set(json_expectation) + elif type_expectation == "integer": + # Necessary as we allow numeric keys, but JSON makes them strings + return int(json_expectation) + + return json_expectation + + +def validate_field(response: typing.Any, json_expectation: typing.Any, type_expectation: typing.Any) -> None: + # Allow for an escape hatch if the object cannot be validated + if type_expectation == "no_validate": + return + + is_container_of_complex_type = False + # Parse types in containers, note that dicts are handled within `validate_response` + if isinstance(json_expectation, list): + if isinstance(type_expectation, tuple): + container_expectation = type_expectation[0] + contents_expectation = type_expectation[1] + + cast_json_expectation = [] + for idx, ex in enumerate(json_expectation): + if isinstance(contents_expectation, dict): + entry_expectation = contents_expectation.get(idx) + if isinstance(entry_expectation, dict): + is_container_of_complex_type = True + validate_response( + response=response[idx], + json_expectation=ex, + type_expectations=entry_expectation, + ) + else: + cast_json_expectation.append(cast_field(ex, entry_expectation)) + else: + cast_json_expectation.append(ex) + json_expectation = cast_json_expectation + + # Note that we explicitly do not allow for sets of pydantic models as they are not hashable, so + # if any of the values of the set have a type_expectation of a dict, we're assuming it's a pydantic + # model and keeping it a list. + if container_expectation != "set" or not any( + map( + lambda value: isinstance(value, dict), + list(contents_expectation.values()), + ) + ): + json_expectation = cast_field(json_expectation, container_expectation) + elif isinstance(type_expectation, tuple): + container_expectation = type_expectation[0] + contents_expectation = type_expectation[1] + if isinstance(contents_expectation, dict): + json_expectation = { + cast_field( + key, + contents_expectation.get(idx)[0] # type: ignore + if contents_expectation.get(idx) is not None + else None, + ): cast_field( + value, + contents_expectation.get(idx)[1] # type: ignore + if contents_expectation.get(idx) is not None + else None, + ) + for idx, (key, value) in enumerate(json_expectation.items()) + } + else: + json_expectation = cast_field(json_expectation, container_expectation) + elif type_expectation is not None: + json_expectation = cast_field(json_expectation, type_expectation) + + # When dealing with containers of models, etc. we're validating them implicitly, so no need to check the resultant list + if not is_container_of_complex_type: + assert ( + json_expectation == response + ), "Primitives found, expected: {0} (type: {1}), Actual: {2} (type: {3})".format( + json_expectation, type(json_expectation), response, type(response) + ) + + +# Arg type_expectations is a deeply nested structure that matches the response, but with the values replaced with the expected types +def validate_response(response: typing.Any, json_expectation: typing.Any, type_expectations: typing.Any) -> None: + # Allow for an escape hatch if the object cannot be validated + if type_expectations == "no_validate": + return + + if ( + not isinstance(response, list) + and not isinstance(response, dict) + and not issubclass(type(response), pydantic.BaseModel) + ): + validate_field( + response=response, + json_expectation=json_expectation, + type_expectation=type_expectations, + ) + return + + if isinstance(response, list): + assert len(response) == len(json_expectation), "Length mismatch, expected: {0}, Actual: {1}".format( + len(response), len(json_expectation) + ) + content_expectation = type_expectations + if isinstance(type_expectations, tuple): + content_expectation = type_expectations[1] + for idx, item in enumerate(response): + validate_response( + response=item, + json_expectation=json_expectation[idx], + type_expectations=content_expectation[idx], + ) + else: + response_json = response + if issubclass(type(response), pydantic.BaseModel): + response_json = response.dict(by_alias=True) + + for key, value in json_expectation.items(): + assert key in response_json, "Field {0} not found within the response object: {1}".format( + key, response_json + ) + + type_expectation = None + if type_expectations is not None and isinstance(type_expectations, dict): + type_expectation = type_expectations.get(key) + + # If your type_expectation is a tuple then you have a container field, process it as such + # Otherwise, we're just validating a single field that's a pydantic model. + if isinstance(value, dict) and not isinstance(type_expectation, tuple): + validate_response( + response=response_json[key], + json_expectation=value, + type_expectations=type_expectation, + ) + else: + validate_field( + response=response_json[key], + json_expectation=value, + type_expectation=type_expectation, + ) + + # Ensure there are no additional fields here either + del response_json[key] + assert len(response_json) == 0, "Additional fields found, expected None: {0}".format(response_json) diff --git a/seed/python-sdk/nullable/tests/utils/__init__.py b/seed/python-sdk/nullable/tests/utils/__init__.py new file mode 100644 index 00000000000..f3ea2659bb1 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/__init__.py @@ -0,0 +1,2 @@ +# This file was auto-generated by Fern from our API Definition. + diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/__init__.py b/seed/python-sdk/nullable/tests/utils/assets/models/__init__.py new file mode 100644 index 00000000000..3a1c852e71e --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/__init__.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +from .circle import CircleParams +from .object_with_defaults import ObjectWithDefaultsParams +from .object_with_optional_field import ObjectWithOptionalFieldParams +from .shape import ShapeParams, Shape_CircleParams, Shape_SquareParams +from .square import SquareParams +from .undiscriminated_shape import UndiscriminatedShapeParams + +__all__ = [ + "CircleParams", + "ObjectWithDefaultsParams", + "ObjectWithOptionalFieldParams", + "ShapeParams", + "Shape_CircleParams", + "Shape_SquareParams", + "SquareParams", + "UndiscriminatedShapeParams", +] diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/circle.py b/seed/python-sdk/nullable/tests/utils/assets/models/circle.py new file mode 100644 index 00000000000..6522dc58c5a --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/circle.py @@ -0,0 +1,11 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +import typing_extensions +from seed.core.serialization import FieldMetadata + + +class CircleParams(typing_extensions.TypedDict): + radius_measurement: typing_extensions.Annotated[float, FieldMetadata(alias="radiusMeasurement")] diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/color.py b/seed/python-sdk/nullable/tests/utils/assets/models/color.py new file mode 100644 index 00000000000..2aa2c4c52f0 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/color.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +import typing + +Color = typing.Union[typing.Literal["red", "blue"], typing.Any] diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/object_with_defaults.py b/seed/python-sdk/nullable/tests/utils/assets/models/object_with_defaults.py new file mode 100644 index 00000000000..ef14f7b2c9d --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/object_with_defaults.py @@ -0,0 +1,16 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +import typing_extensions + + +class ObjectWithDefaultsParams(typing_extensions.TypedDict): + """ + Defines properties with default values and validation rules. + """ + + decimal: typing_extensions.NotRequired[float] + string: typing_extensions.NotRequired[str] + required_string: str diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/object_with_optional_field.py b/seed/python-sdk/nullable/tests/utils/assets/models/object_with_optional_field.py new file mode 100644 index 00000000000..fc5a379b967 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/object_with_optional_field.py @@ -0,0 +1,34 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +import typing +import typing_extensions +from seed.core.serialization import FieldMetadata +import datetime as dt +import uuid +from .color import Color +from .shape import ShapeParams +from .undiscriminated_shape import UndiscriminatedShapeParams + + +class ObjectWithOptionalFieldParams(typing_extensions.TypedDict): + literal: typing.Literal["lit_one"] + string: typing_extensions.NotRequired[str] + integer: typing_extensions.NotRequired[int] + long_: typing_extensions.NotRequired[typing_extensions.Annotated[int, FieldMetadata(alias="long")]] + double: typing_extensions.NotRequired[float] + bool_: typing_extensions.NotRequired[typing_extensions.Annotated[bool, FieldMetadata(alias="bool")]] + datetime: typing_extensions.NotRequired[dt.datetime] + date: typing_extensions.NotRequired[dt.date] + uuid_: typing_extensions.NotRequired[typing_extensions.Annotated[uuid.UUID, FieldMetadata(alias="uuid")]] + base_64: typing_extensions.NotRequired[typing_extensions.Annotated[str, FieldMetadata(alias="base64")]] + list_: typing_extensions.NotRequired[typing_extensions.Annotated[typing.Sequence[str], FieldMetadata(alias="list")]] + set_: typing_extensions.NotRequired[typing_extensions.Annotated[typing.Set[str], FieldMetadata(alias="set")]] + map_: typing_extensions.NotRequired[typing_extensions.Annotated[typing.Dict[int, str], FieldMetadata(alias="map")]] + enum: typing_extensions.NotRequired[Color] + union: typing_extensions.NotRequired[ShapeParams] + second_union: typing_extensions.NotRequired[ShapeParams] + undiscriminated_union: typing_extensions.NotRequired[UndiscriminatedShapeParams] + any: typing.Optional[typing.Any] diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/shape.py b/seed/python-sdk/nullable/tests/utils/assets/models/shape.py new file mode 100644 index 00000000000..ae113ae0609 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/shape.py @@ -0,0 +1,26 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations +import typing_extensions +import typing_extensions +import typing +from seed.core.serialization import FieldMetadata + + +class Base(typing_extensions.TypedDict): + id: str + + +class Shape_CircleParams(Base): + shape_type: typing_extensions.Annotated[typing.Literal["circle"], FieldMetadata(alias="shapeType")] + radius_measurement: typing_extensions.Annotated[float, FieldMetadata(alias="radiusMeasurement")] + + +class Shape_SquareParams(Base): + shape_type: typing_extensions.Annotated[typing.Literal["square"], FieldMetadata(alias="shapeType")] + length_measurement: typing_extensions.Annotated[float, FieldMetadata(alias="lengthMeasurement")] + + +ShapeParams = typing.Union[Shape_CircleParams, Shape_SquareParams] diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/square.py b/seed/python-sdk/nullable/tests/utils/assets/models/square.py new file mode 100644 index 00000000000..7f6f79a3ddc --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/square.py @@ -0,0 +1,11 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +import typing_extensions +from seed.core.serialization import FieldMetadata + + +class SquareParams(typing_extensions.TypedDict): + length_measurement: typing_extensions.Annotated[float, FieldMetadata(alias="lengthMeasurement")] diff --git a/seed/python-sdk/nullable/tests/utils/assets/models/undiscriminated_shape.py b/seed/python-sdk/nullable/tests/utils/assets/models/undiscriminated_shape.py new file mode 100644 index 00000000000..68876a23c38 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/assets/models/undiscriminated_shape.py @@ -0,0 +1,9 @@ +# This file was auto-generated by Fern from our API Definition. + +# This file was auto-generated by Fern from our API Definition. + +import typing +from .circle import CircleParams +from .square import SquareParams + +UndiscriminatedShapeParams = typing.Union[CircleParams, SquareParams] diff --git a/seed/python-sdk/nullable/tests/utils/test_http_client.py b/seed/python-sdk/nullable/tests/utils/test_http_client.py new file mode 100644 index 00000000000..a541bae6531 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/test_http_client.py @@ -0,0 +1,61 @@ +# This file was auto-generated by Fern from our API Definition. + +from seed.core.http_client import get_request_body +from seed.core.request_options import RequestOptions + + +def get_request_options() -> RequestOptions: + return {"additional_body_parameters": {"see you": "later"}} + + +def test_get_json_request_body() -> None: + json_body, data_body = get_request_body(json={"hello": "world"}, data=None, request_options=None, omit=None) + assert json_body == {"hello": "world"} + assert data_body is None + + json_body_extras, data_body_extras = get_request_body( + json={"goodbye": "world"}, data=None, request_options=get_request_options(), omit=None + ) + + assert json_body_extras == {"goodbye": "world", "see you": "later"} + assert data_body_extras is None + + +def test_get_files_request_body() -> None: + json_body, data_body = get_request_body(json=None, data={"hello": "world"}, request_options=None, omit=None) + assert data_body == {"hello": "world"} + assert json_body is None + + json_body_extras, data_body_extras = get_request_body( + json=None, data={"goodbye": "world"}, request_options=get_request_options(), omit=None + ) + + assert data_body_extras == {"goodbye": "world", "see you": "later"} + assert json_body_extras is None + + +def test_get_none_request_body() -> None: + json_body, data_body = get_request_body(json=None, data=None, request_options=None, omit=None) + assert data_body is None + assert json_body is None + + json_body_extras, data_body_extras = get_request_body( + json=None, data=None, request_options=get_request_options(), omit=None + ) + + assert json_body_extras == {"see you": "later"} + assert data_body_extras is None + + +def test_get_empty_json_request_body() -> None: + unrelated_request_options: RequestOptions = {"max_retries": 3} + json_body, data_body = get_request_body(json=None, data=None, request_options=unrelated_request_options, omit=None) + assert json_body is None + assert data_body is None + + json_body_extras, data_body_extras = get_request_body( + json={}, data=None, request_options=unrelated_request_options, omit=None + ) + + assert json_body_extras is None + assert data_body_extras is None diff --git a/seed/python-sdk/nullable/tests/utils/test_query_encoding.py b/seed/python-sdk/nullable/tests/utils/test_query_encoding.py new file mode 100644 index 00000000000..e075394a502 --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/test_query_encoding.py @@ -0,0 +1,37 @@ +# This file was auto-generated by Fern from our API Definition. + + +from seed.core.query_encoder import encode_query + + +def test_query_encoding_deep_objects() -> None: + assert encode_query({"hello world": "hello world"}) == [("hello world", "hello world")] + assert encode_query({"hello_world": {"hello": "world"}}) == [("hello_world[hello]", "world")] + assert encode_query({"hello_world": {"hello": {"world": "today"}, "test": "this"}, "hi": "there"}) == [ + ("hello_world[hello][world]", "today"), + ("hello_world[test]", "this"), + ("hi", "there"), + ] + + +def test_query_encoding_deep_object_arrays() -> None: + assert encode_query({"objects": [{"key": "hello", "value": "world"}, {"key": "foo", "value": "bar"}]}) == [ + ("objects[key]", "hello"), + ("objects[value]", "world"), + ("objects[key]", "foo"), + ("objects[value]", "bar"), + ] + assert encode_query( + {"users": [{"name": "string", "tags": ["string"]}, {"name": "string2", "tags": ["string2", "string3"]}]} + ) == [ + ("users[name]", "string"), + ("users[tags]", "string"), + ("users[name]", "string2"), + ("users[tags]", "string2"), + ("users[tags]", "string3"), + ] + + +def test_encode_query_with_none() -> None: + encoded = encode_query(None) + assert encoded == None diff --git a/seed/python-sdk/nullable/tests/utils/test_serialization.py b/seed/python-sdk/nullable/tests/utils/test_serialization.py new file mode 100644 index 00000000000..dd74836366c --- /dev/null +++ b/seed/python-sdk/nullable/tests/utils/test_serialization.py @@ -0,0 +1,72 @@ +# This file was auto-generated by Fern from our API Definition. + +from typing import List, Any + +from seed.core.serialization import convert_and_respect_annotation_metadata +from .assets.models import ShapeParams, ObjectWithOptionalFieldParams + + +UNION_TEST: ShapeParams = {"radius_measurement": 1.0, "shape_type": "circle", "id": "1"} +UNION_TEST_CONVERTED = {"shapeType": "circle", "radiusMeasurement": 1.0, "id": "1"} + + +def test_convert_and_respect_annotation_metadata() -> None: + data: ObjectWithOptionalFieldParams = { + "string": "string", + "long_": 12345, + "bool_": True, + "literal": "lit_one", + "any": "any", + } + converted = convert_and_respect_annotation_metadata( + object_=data, annotation=ObjectWithOptionalFieldParams, direction="write" + ) + assert converted == {"string": "string", "long": 12345, "bool": True, "literal": "lit_one", "any": "any"} + + +def test_convert_and_respect_annotation_metadata_in_list() -> None: + data: List[ObjectWithOptionalFieldParams] = [ + {"string": "string", "long_": 12345, "bool_": True, "literal": "lit_one", "any": "any"}, + {"string": "another string", "long_": 67890, "list_": [], "literal": "lit_one", "any": "any"}, + ] + converted = convert_and_respect_annotation_metadata( + object_=data, annotation=List[ObjectWithOptionalFieldParams], direction="write" + ) + + assert converted == [ + {"string": "string", "long": 12345, "bool": True, "literal": "lit_one", "any": "any"}, + {"string": "another string", "long": 67890, "list": [], "literal": "lit_one", "any": "any"}, + ] + + +def test_convert_and_respect_annotation_metadata_in_nested_object() -> None: + data: ObjectWithOptionalFieldParams = { + "string": "string", + "long_": 12345, + "union": UNION_TEST, + "literal": "lit_one", + "any": "any", + } + converted = convert_and_respect_annotation_metadata( + object_=data, annotation=ObjectWithOptionalFieldParams, direction="write" + ) + + assert converted == { + "string": "string", + "long": 12345, + "union": UNION_TEST_CONVERTED, + "literal": "lit_one", + "any": "any", + } + + +def test_convert_and_respect_annotation_metadata_in_union() -> None: + converted = convert_and_respect_annotation_metadata(object_=UNION_TEST, annotation=ShapeParams, direction="write") + + assert converted == UNION_TEST_CONVERTED + + +def test_convert_and_respect_annotation_metadata_with_empty_object() -> None: + data: Any = {} + converted = convert_and_respect_annotation_metadata(object_=data, annotation=ShapeParams, direction="write") + assert converted == data diff --git a/seed/python-sdk/oauth-client-credentials-custom/README.md b/seed/python-sdk/oauth-client-credentials-custom/README.md index 124a8655c78..d8fe13b282a 100644 --- a/seed/python-sdk/oauth-client-credentials-custom/README.md +++ b/seed/python-sdk/oauth-client-credentials-custom/README.md @@ -85,10 +85,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/http_client.py b/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/http_client.py +++ b/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-custom/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/oauth-client-credentials-default/README.md b/seed/python-sdk/oauth-client-credentials-default/README.md index 693f40adbc7..a6b86d209bc 100644 --- a/seed/python-sdk/oauth-client-credentials-default/README.md +++ b/seed/python-sdk/oauth-client-credentials-default/README.md @@ -79,10 +79,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/oauth-client-credentials-default/src/seed/core/http_client.py b/seed/python-sdk/oauth-client-credentials-default/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/oauth-client-credentials-default/src/seed/core/http_client.py +++ b/seed/python-sdk/oauth-client-credentials-default/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/oauth-client-credentials-environment-variables/README.md b/seed/python-sdk/oauth-client-credentials-environment-variables/README.md index 3e7e9e3c9c1..100115e7925 100644 --- a/seed/python-sdk/oauth-client-credentials-environment-variables/README.md +++ b/seed/python-sdk/oauth-client-credentials-environment-variables/README.md @@ -81,10 +81,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/http_client.py b/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/http_client.py +++ b/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/oauth-client-credentials-nested-root/README.md b/seed/python-sdk/oauth-client-credentials-nested-root/README.md index d06303ecda5..97349116cf0 100644 --- a/seed/python-sdk/oauth-client-credentials-nested-root/README.md +++ b/seed/python-sdk/oauth-client-credentials-nested-root/README.md @@ -81,10 +81,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/http_client.py b/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/http_client.py +++ b/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/oauth-client-credentials/README.md b/seed/python-sdk/oauth-client-credentials/README.md index 267da38f43a..84dd17e4a36 100644 --- a/seed/python-sdk/oauth-client-credentials/README.md +++ b/seed/python-sdk/oauth-client-credentials/README.md @@ -81,10 +81,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/oauth-client-credentials/src/seed/core/http_client.py b/seed/python-sdk/oauth-client-credentials/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/oauth-client-credentials/src/seed/core/http_client.py +++ b/seed/python-sdk/oauth-client-credentials/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/object/src/seed/core/http_client.py b/seed/python-sdk/object/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/object/src/seed/core/http_client.py +++ b/seed/python-sdk/object/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/object/src/seed/core/pydantic_utilities.py b/seed/python-sdk/object/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/object/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/object/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/objects-with-imports/src/seed/core/http_client.py b/seed/python-sdk/objects-with-imports/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/objects-with-imports/src/seed/core/http_client.py +++ b/seed/python-sdk/objects-with-imports/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py b/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/optional/README.md b/seed/python-sdk/optional/README.md index 01678c7ac6c..9cf0f0a0b23 100644 --- a/seed/python-sdk/optional/README.md +++ b/seed/python-sdk/optional/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/optional/src/seed/core/http_client.py b/seed/python-sdk/optional/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/optional/src/seed/core/http_client.py +++ b/seed/python-sdk/optional/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py b/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/package-yml/README.md b/seed/python-sdk/package-yml/README.md index 3d50c866a90..dc7c5e8a3cc 100644 --- a/seed/python-sdk/package-yml/README.md +++ b/seed/python-sdk/package-yml/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/package-yml/src/seed/core/http_client.py b/seed/python-sdk/package-yml/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/package-yml/src/seed/core/http_client.py +++ b/seed/python-sdk/package-yml/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py b/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/pagination/.mock/definition/users.yml b/seed/python-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/python-sdk/pagination/.mock/definition/users.yml +++ b/seed/python-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/python-sdk/pagination/README.md b/seed/python-sdk/pagination/README.md index 2d55896d08f..b1e9f57c033 100644 --- a/seed/python-sdk/pagination/README.md +++ b/seed/python-sdk/pagination/README.md @@ -109,10 +109,10 @@ for page in response.iter_pages(): ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/pagination/reference.md b/seed/python-sdk/pagination/reference.md index 9c0216f736a..faf7fafce6d 100644 --- a/seed/python-sdk/pagination/reference.md +++ b/seed/python-sdk/pagination/reference.md @@ -530,7 +530,7 @@ for page in response.iter_pages(): **limit:** `typing.Optional[int]` -The maxiumum number of elements to return. +The maximum number of elements to return. This is also used as the step size in this paginated endpoint. @@ -614,7 +614,7 @@ for page in response.iter_pages(): **limit:** `typing.Optional[int]` -The maxiumum number of elements to return. +The maximum number of elements to return. This is also used as the step size in this paginated endpoint. diff --git a/seed/python-sdk/pagination/src/seed/core/http_client.py b/seed/python-sdk/pagination/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/pagination/src/seed/core/http_client.py +++ b/seed/python-sdk/pagination/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/pagination/src/seed/core/pagination.py b/seed/python-sdk/pagination/src/seed/core/pagination.py index 5f482635abd..74f8ae61c16 100644 --- a/seed/python-sdk/pagination/src/seed/core/pagination.py +++ b/seed/python-sdk/pagination/src/seed/core/pagination.py @@ -10,7 +10,7 @@ T = typing.TypeVar("T") -# SDKs implement a Page ABC per-pagination request, the endpoint then retuns a pager that wraps this type +# SDKs implement a Page ABC per-pagination request, the endpoint then returns a pager that wraps this type # for example, an endpoint will return SyncPager[UserPage] where UserPage implements the Page ABC. ex: # # SyncPager( diff --git a/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py b/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/pagination/src/seed/users/client.py b/seed/python-sdk/pagination/src/seed/users/client.py index a42e7f416f5..503fb80a361 100644 --- a/seed/python-sdk/pagination/src/seed/users/client.py +++ b/seed/python-sdk/pagination/src/seed/users/client.py @@ -516,7 +516,7 @@ def list_with_offset_step_pagination( Defaults to first page limit : typing.Optional[int] - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. @@ -597,7 +597,7 @@ def list_with_offset_pagination_has_next_page( Defaults to first page limit : typing.Optional[int] - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. @@ -1469,7 +1469,7 @@ async def list_with_offset_step_pagination( Defaults to first page limit : typing.Optional[int] - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. @@ -1558,7 +1558,7 @@ async def list_with_offset_pagination_has_next_page( Defaults to first page limit : typing.Optional[int] - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. diff --git a/seed/python-sdk/path-parameters/README.md b/seed/python-sdk/path-parameters/README.md index 86042e3eff9..ab4b4de1743 100644 --- a/seed/python-sdk/path-parameters/README.md +++ b/seed/python-sdk/path-parameters/README.md @@ -77,10 +77,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/path-parameters/src/seed/core/http_client.py b/seed/python-sdk/path-parameters/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/path-parameters/src/seed/core/http_client.py +++ b/seed/python-sdk/path-parameters/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/path-parameters/src/seed/core/pydantic_utilities.py b/seed/python-sdk/path-parameters/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/path-parameters/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/path-parameters/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/plain-text/README.md b/seed/python-sdk/plain-text/README.md index 3fe17c2a460..ced3f0e468c 100644 --- a/seed/python-sdk/plain-text/README.md +++ b/seed/python-sdk/plain-text/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/plain-text/src/seed/core/http_client.py b/seed/python-sdk/plain-text/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/plain-text/src/seed/core/http_client.py +++ b/seed/python-sdk/plain-text/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py b/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/query-parameters/src/seed/core/http_client.py b/seed/python-sdk/query-parameters/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/query-parameters/src/seed/core/http_client.py +++ b/seed/python-sdk/query-parameters/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py b/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/reserved-keywords/README.md b/seed/python-sdk/reserved-keywords/README.md index b53ba534abd..36c2a174a2b 100644 --- a/seed/python-sdk/reserved-keywords/README.md +++ b/seed/python-sdk/reserved-keywords/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/reserved-keywords/src/seed/core/http_client.py b/seed/python-sdk/reserved-keywords/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/reserved-keywords/src/seed/core/http_client.py +++ b/seed/python-sdk/reserved-keywords/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py b/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/response-property/README.md b/seed/python-sdk/response-property/README.md index fcac506271e..cacb3bef348 100644 --- a/seed/python-sdk/response-property/README.md +++ b/seed/python-sdk/response-property/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/response-property/src/seed/core/http_client.py b/seed/python-sdk/response-property/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/response-property/src/seed/core/http_client.py +++ b/seed/python-sdk/response-property/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/response-property/src/seed/core/pydantic_utilities.py b/seed/python-sdk/response-property/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/response-property/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/response-property/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/seed.yml b/seed/python-sdk/seed.yml index bc917ac1789..4d6f4a19383 100644 --- a/seed/python-sdk/seed.yml +++ b/seed/python-sdk/seed.yml @@ -11,7 +11,7 @@ buildScripts: commands: - poetry run mypy . testScript: - # TODO: we need to acttually run the mock server tests as well + # TODO: we need to actually run the mock server tests as well # Note: not all versions of the generator have this test directory which brings in the unit tests we write # as a result, the script here only runs pytest if the directory exists, and exits 0 if it does not (e.g. just passes) commands: diff --git a/seed/python-sdk/server-sent-event-examples/README.md b/seed/python-sdk/server-sent-event-examples/README.md index ec3247101ce..2fe0962bcb4 100644 --- a/seed/python-sdk/server-sent-event-examples/README.md +++ b/seed/python-sdk/server-sent-event-examples/README.md @@ -94,10 +94,10 @@ for chunk in response: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/server-sent-event-examples/src/seed/core/http_client.py b/seed/python-sdk/server-sent-event-examples/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/server-sent-event-examples/src/seed/core/http_client.py +++ b/seed/python-sdk/server-sent-event-examples/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/server-sent-event-examples/src/seed/core/pydantic_utilities.py b/seed/python-sdk/server-sent-event-examples/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/server-sent-event-examples/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/server-sent-event-examples/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/server-sent-events/README.md b/seed/python-sdk/server-sent-events/README.md index 62ce551225e..f3d10e36618 100644 --- a/seed/python-sdk/server-sent-events/README.md +++ b/seed/python-sdk/server-sent-events/README.md @@ -94,10 +94,10 @@ for chunk in response: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/server-sent-events/src/seed/core/http_client.py b/seed/python-sdk/server-sent-events/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/server-sent-events/src/seed/core/http_client.py +++ b/seed/python-sdk/server-sent-events/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py b/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/simple-fhir/README.md b/seed/python-sdk/simple-fhir/README.md index 255885321fe..4337a5205c4 100644 --- a/seed/python-sdk/simple-fhir/README.md +++ b/seed/python-sdk/simple-fhir/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/simple-fhir/src/seed/core/http_client.py b/seed/python-sdk/simple-fhir/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/simple-fhir/src/seed/core/http_client.py +++ b/seed/python-sdk/simple-fhir/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/simple-fhir/src/seed/core/pydantic_utilities.py b/seed/python-sdk/simple-fhir/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/simple-fhir/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/simple-fhir/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/single-url-environment-default/README.md b/seed/python-sdk/single-url-environment-default/README.md index b4d39020c07..91fbb7e3bc0 100644 --- a/seed/python-sdk/single-url-environment-default/README.md +++ b/seed/python-sdk/single-url-environment-default/README.md @@ -69,10 +69,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/single-url-environment-default/src/seed/core/http_client.py b/seed/python-sdk/single-url-environment-default/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/single-url-environment-default/src/seed/core/http_client.py +++ b/seed/python-sdk/single-url-environment-default/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/single-url-environment-no-default/README.md b/seed/python-sdk/single-url-environment-no-default/README.md index 562a7e926e4..9d513a20726 100644 --- a/seed/python-sdk/single-url-environment-no-default/README.md +++ b/seed/python-sdk/single-url-environment-no-default/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/single-url-environment-no-default/src/seed/core/http_client.py b/seed/python-sdk/single-url-environment-no-default/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/single-url-environment-no-default/src/seed/core/http_client.py +++ b/seed/python-sdk/single-url-environment-no-default/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/streaming-parameter/README.md b/seed/python-sdk/streaming-parameter/README.md index 0817cb2b7a1..bbc75eee5f5 100644 --- a/seed/python-sdk/streaming-parameter/README.md +++ b/seed/python-sdk/streaming-parameter/README.md @@ -75,10 +75,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/streaming-parameter/src/seed/core/http_client.py b/seed/python-sdk/streaming-parameter/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/streaming-parameter/src/seed/core/http_client.py +++ b/seed/python-sdk/streaming-parameter/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py b/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/streaming/no-custom-config/README.md b/seed/python-sdk/streaming/no-custom-config/README.md index 563b4c54e85..e8632925955 100644 --- a/seed/python-sdk/streaming/no-custom-config/README.md +++ b/seed/python-sdk/streaming/no-custom-config/README.md @@ -94,10 +94,10 @@ for chunk in response: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/streaming/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/streaming/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/streaming/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/streaming/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/streaming/skip-pydantic-validation/README.md b/seed/python-sdk/streaming/skip-pydantic-validation/README.md index 563b4c54e85..e8632925955 100644 --- a/seed/python-sdk/streaming/skip-pydantic-validation/README.md +++ b/seed/python-sdk/streaming/skip-pydantic-validation/README.md @@ -94,10 +94,10 @@ for chunk in response: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/http_client.py b/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/http_client.py +++ b/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/trace/README.md b/seed/python-sdk/trace/README.md index bfd6b389658..c1a768c5032 100644 --- a/seed/python-sdk/trace/README.md +++ b/seed/python-sdk/trace/README.md @@ -86,10 +86,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/trace/src/seed/core/http_client.py b/seed/python-sdk/trace/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/trace/src/seed/core/http_client.py +++ b/seed/python-sdk/trace/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/trace/src/seed/core/pydantic_utilities.py b/seed/python-sdk/trace/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/trace/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/trace/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page.py b/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page.py index 1aca3fdb62d..795d9d37563 100644 --- a/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page.py +++ b/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page.py @@ -16,7 +16,7 @@ class TraceResponsesPage(UniversalBaseModel): offset: typing.Optional[int] = pydantic.Field(default=None) """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ diff --git a/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page_v_2.py b/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page_v_2.py index 4701ff0ab6c..2ae450c4a4f 100644 --- a/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page_v_2.py +++ b/seed/python-sdk/trace/src/seed/submission/types/trace_responses_page_v_2.py @@ -16,7 +16,7 @@ class TraceResponsesPageV2(UniversalBaseModel): offset: typing.Optional[int] = pydantic.Field(default=None) """ - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. """ diff --git a/seed/python-sdk/undiscriminated-unions/README.md b/seed/python-sdk/undiscriminated-unions/README.md index 6336d306f3f..b47b4003da2 100644 --- a/seed/python-sdk/undiscriminated-unions/README.md +++ b/seed/python-sdk/undiscriminated-unions/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/undiscriminated-unions/src/seed/core/http_client.py b/seed/python-sdk/undiscriminated-unions/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/undiscriminated-unions/src/seed/core/http_client.py +++ b/seed/python-sdk/undiscriminated-unions/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py b/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/unions/no-custom-config/.mock/definition/types.yml b/seed/python-sdk/unions/no-custom-config/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/python-sdk/unions/no-custom-config/.mock/definition/types.yml +++ b/seed/python-sdk/unions/no-custom-config/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/python-sdk/unions/no-custom-config/README.md b/seed/python-sdk/unions/no-custom-config/README.md index 0c0f55a8464..9b6a8c30aa1 100644 --- a/seed/python-sdk/unions/no-custom-config/README.md +++ b/seed/python-sdk/unions/no-custom-config/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/__init__.py b/seed/python-sdk/unions/no-custom-config/src/seed/__init__.py index 11b404bef04..df1adf6a53a 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/__init__.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/__init__.py @@ -15,7 +15,7 @@ UnionWithLiteral_Fern, UnionWithOptionalTime, UnionWithOptionalTime_Date, - UnionWithOptionalTime_Dateimte, + UnionWithOptionalTime_Datetime, UnionWithPrimitive, UnionWithPrimitive_Integer, UnionWithPrimitive_String, @@ -62,7 +62,7 @@ "UnionWithLiteral_Fern", "UnionWithOptionalTime", "UnionWithOptionalTime_Date", - "UnionWithOptionalTime_Dateimte", + "UnionWithOptionalTime_Datetime", "UnionWithPrimitive", "UnionWithPrimitive_Integer", "UnionWithPrimitive_String", diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/unions/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/types/__init__.py b/seed/python-sdk/unions/no-custom-config/src/seed/types/__init__.py index a4a8794fc65..06e194ca888 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/types/__init__.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/types/__init__.py @@ -15,7 +15,7 @@ UnionWithLiteral_Fern, UnionWithOptionalTime, UnionWithOptionalTime_Date, - UnionWithOptionalTime_Dateimte, + UnionWithOptionalTime_Datetime, UnionWithPrimitive, UnionWithPrimitive_Integer, UnionWithPrimitive_String, @@ -50,7 +50,7 @@ "UnionWithLiteral_Fern", "UnionWithOptionalTime", "UnionWithOptionalTime_Date", - "UnionWithOptionalTime_Dateimte", + "UnionWithOptionalTime_Datetime", "UnionWithPrimitive", "UnionWithPrimitive_Integer", "UnionWithPrimitive_String", diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/types/types/__init__.py b/seed/python-sdk/unions/no-custom-config/src/seed/types/types/__init__.py index 42d3faa423c..80b98d57d81 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/types/types/__init__.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/types/types/__init__.py @@ -11,7 +11,7 @@ ) from .union_with_discriminant import UnionWithDiscriminant, UnionWithDiscriminant_Bar, UnionWithDiscriminant_Foo from .union_with_literal import UnionWithLiteral, UnionWithLiteral_Fern -from .union_with_optional_time import UnionWithOptionalTime, UnionWithOptionalTime_Date, UnionWithOptionalTime_Dateimte +from .union_with_optional_time import UnionWithOptionalTime, UnionWithOptionalTime_Date, UnionWithOptionalTime_Datetime from .union_with_primitive import UnionWithPrimitive, UnionWithPrimitive_Integer, UnionWithPrimitive_String from .union_with_single_element import UnionWithSingleElement, UnionWithSingleElement_Foo from .union_with_time import UnionWithTime, UnionWithTime_Date, UnionWithTime_Datetime, UnionWithTime_Value @@ -33,7 +33,7 @@ "UnionWithLiteral_Fern", "UnionWithOptionalTime", "UnionWithOptionalTime_Date", - "UnionWithOptionalTime_Dateimte", + "UnionWithOptionalTime_Datetime", "UnionWithPrimitive", "UnionWithPrimitive_Integer", "UnionWithPrimitive_String", diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/types/types/union_with_optional_time.py b/seed/python-sdk/unions/no-custom-config/src/seed/types/types/union_with_optional_time.py index 2f25cb67eb0..3e2b7988334 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/types/types/union_with_optional_time.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/types/types/union_with_optional_time.py @@ -21,9 +21,9 @@ class Config: smart_union = True -class UnionWithOptionalTime_Dateimte(UniversalBaseModel): +class UnionWithOptionalTime_Datetime(UniversalBaseModel): value: typing.Optional[dt.datetime] = None - type: typing.Literal["dateimte"] = "dateimte" + type: typing.Literal["datetime"] = "datetime" if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(frozen=True) # type: ignore # Pydantic v2 @@ -34,4 +34,4 @@ class Config: smart_union = True -UnionWithOptionalTime = typing.Union[UnionWithOptionalTime_Date, UnionWithOptionalTime_Dateimte] +UnionWithOptionalTime = typing.Union[UnionWithOptionalTime_Date, UnionWithOptionalTime_Datetime] diff --git a/seed/python-sdk/unions/union-naming-v1/.mock/definition/types.yml b/seed/python-sdk/unions/union-naming-v1/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/python-sdk/unions/union-naming-v1/.mock/definition/types.yml +++ b/seed/python-sdk/unions/union-naming-v1/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/python-sdk/unions/union-naming-v1/README.md b/seed/python-sdk/unions/union-naming-v1/README.md index 0c0f55a8464..9b6a8c30aa1 100644 --- a/seed/python-sdk/unions/union-naming-v1/README.md +++ b/seed/python-sdk/unions/union-naming-v1/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/unions/union-naming-v1/src/seed/__init__.py b/seed/python-sdk/unions/union-naming-v1/src/seed/__init__.py index 06bf832e6c1..bffed10aac1 100644 --- a/seed/python-sdk/unions/union-naming-v1/src/seed/__init__.py +++ b/seed/python-sdk/unions/union-naming-v1/src/seed/__init__.py @@ -7,7 +7,7 @@ BarUnionWithoutKey, DateUnionWithOptionalTime, DateUnionWithTime, - DateimteUnionWithOptionalTime, + DatetimeUnionWithOptionalTime, DatetimeUnionWithTime, FernUnionWithLiteral, Foo, @@ -49,7 +49,7 @@ "CircleShape", "DateUnionWithOptionalTime", "DateUnionWithTime", - "DateimteUnionWithOptionalTime", + "DatetimeUnionWithOptionalTime", "DatetimeUnionWithTime", "FernUnionWithLiteral", "Foo", diff --git a/seed/python-sdk/unions/union-naming-v1/src/seed/core/http_client.py b/seed/python-sdk/unions/union-naming-v1/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/unions/union-naming-v1/src/seed/core/http_client.py +++ b/seed/python-sdk/unions/union-naming-v1/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/unions/union-naming-v1/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unions/union-naming-v1/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/unions/union-naming-v1/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unions/union-naming-v1/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/unions/union-naming-v1/src/seed/types/__init__.py b/seed/python-sdk/unions/union-naming-v1/src/seed/types/__init__.py index 62442a3c341..ca892d3f06d 100644 --- a/seed/python-sdk/unions/union-naming-v1/src/seed/types/__init__.py +++ b/seed/python-sdk/unions/union-naming-v1/src/seed/types/__init__.py @@ -7,7 +7,7 @@ BarUnionWithoutKey, DateUnionWithOptionalTime, DateUnionWithTime, - DateimteUnionWithOptionalTime, + DatetimeUnionWithOptionalTime, DatetimeUnionWithTime, FernUnionWithLiteral, Foo, @@ -42,7 +42,7 @@ "BarUnionWithoutKey", "DateUnionWithOptionalTime", "DateUnionWithTime", - "DateimteUnionWithOptionalTime", + "DatetimeUnionWithOptionalTime", "DatetimeUnionWithTime", "FernUnionWithLiteral", "Foo", diff --git a/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/__init__.py b/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/__init__.py index d5d1d38cf65..d6834dfef05 100644 --- a/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/__init__.py +++ b/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/__init__.py @@ -11,7 +11,7 @@ ) from .union_with_discriminant import BarUnionWithDiscriminant, FooUnionWithDiscriminant, UnionWithDiscriminant from .union_with_literal import FernUnionWithLiteral, UnionWithLiteral -from .union_with_optional_time import DateUnionWithOptionalTime, DateimteUnionWithOptionalTime, UnionWithOptionalTime +from .union_with_optional_time import DateUnionWithOptionalTime, DatetimeUnionWithOptionalTime, UnionWithOptionalTime from .union_with_primitive import IntegerUnionWithPrimitive, StringUnionWithPrimitive, UnionWithPrimitive from .union_with_single_element import FooUnionWithSingleElement, UnionWithSingleElement from .union_with_time import DateUnionWithTime, DatetimeUnionWithTime, UnionWithTime, ValueUnionWithTime @@ -25,7 +25,7 @@ "BarUnionWithoutKey", "DateUnionWithOptionalTime", "DateUnionWithTime", - "DateimteUnionWithOptionalTime", + "DatetimeUnionWithOptionalTime", "DatetimeUnionWithTime", "FernUnionWithLiteral", "Foo", diff --git a/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/union_with_optional_time.py b/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/union_with_optional_time.py index 8d389d02f7e..1734bc7d6bc 100644 --- a/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/union_with_optional_time.py +++ b/seed/python-sdk/unions/union-naming-v1/src/seed/types/types/union_with_optional_time.py @@ -21,9 +21,9 @@ class Config: smart_union = True -class DateimteUnionWithOptionalTime(UniversalBaseModel): +class DatetimeUnionWithOptionalTime(UniversalBaseModel): value: typing.Optional[dt.datetime] = None - type: typing.Literal["dateimte"] = "dateimte" + type: typing.Literal["datetime"] = "datetime" if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(frozen=True) # type: ignore # Pydantic v2 @@ -34,4 +34,4 @@ class Config: smart_union = True -UnionWithOptionalTime = typing.Union[DateUnionWithOptionalTime, DateimteUnionWithOptionalTime] +UnionWithOptionalTime = typing.Union[DateUnionWithOptionalTime, DatetimeUnionWithOptionalTime] diff --git a/seed/python-sdk/unions/union-utils/.mock/definition/types.yml b/seed/python-sdk/unions/union-utils/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/python-sdk/unions/union-utils/.mock/definition/types.yml +++ b/seed/python-sdk/unions/union-utils/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/python-sdk/unions/union-utils/README.md b/seed/python-sdk/unions/union-utils/README.md index 0c0f55a8464..9b6a8c30aa1 100644 --- a/seed/python-sdk/unions/union-utils/README.md +++ b/seed/python-sdk/unions/union-utils/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/unions/union-utils/src/seed/core/http_client.py b/seed/python-sdk/unions/union-utils/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/unions/union-utils/src/seed/core/http_client.py +++ b/seed/python-sdk/unions/union-utils/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/unions/union-utils/src/seed/types/types/union_with_optional_time.py b/seed/python-sdk/unions/union-utils/src/seed/types/types/union_with_optional_time.py index 8c05c59379c..a995af8b595 100644 --- a/seed/python-sdk/unions/union-utils/src/seed/types/types/union_with_optional_time.py +++ b/seed/python-sdk/unions/union-utils/src/seed/types/types/union_with_optional_time.py @@ -20,11 +20,11 @@ def date(self, value: typing.Optional[dt.date]) -> UnionWithOptionalTime: else: return UnionWithOptionalTime(__root__=_UnionWithOptionalTime.Date(type="date", value=value)) # type: ignore - def dateimte(self, value: typing.Optional[dt.datetime]) -> UnionWithOptionalTime: + def datetime(self, value: typing.Optional[dt.datetime]) -> UnionWithOptionalTime: if IS_PYDANTIC_V2: - return UnionWithOptionalTime(root=_UnionWithOptionalTime.Dateimte(type="dateimte", value=value)) # type: ignore + return UnionWithOptionalTime(root=_UnionWithOptionalTime.Datetime(type="datetime", value=value)) # type: ignore else: - return UnionWithOptionalTime(__root__=_UnionWithOptionalTime.Dateimte(type="dateimte", value=value)) # type: ignore + return UnionWithOptionalTime(__root__=_UnionWithOptionalTime.Datetime(type="datetime", value=value)) # type: ignore class UnionWithOptionalTime(UniversalRootModel): @@ -32,19 +32,19 @@ class UnionWithOptionalTime(UniversalRootModel): if IS_PYDANTIC_V2: root: typing_extensions.Annotated[ - typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte], + typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime], pydantic.Field(discriminator="type"), ] - def get_as_union(self) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte]: + def get_as_union(self) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime]: return self.root else: __root__: typing_extensions.Annotated[ - typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte], + typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime], pydantic.Field(discriminator="type"), ] - def get_as_union(self) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Dateimte]: + def get_as_union(self) -> typing.Union[_UnionWithOptionalTime.Date, _UnionWithOptionalTime.Datetime]: return self.__root__ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: @@ -56,13 +56,13 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: def visit( self, date: typing.Callable[[typing.Optional[dt.date]], T_Result], - dateimte: typing.Callable[[typing.Optional[dt.datetime]], T_Result], + datetime: typing.Callable[[typing.Optional[dt.datetime]], T_Result], ) -> T_Result: unioned_value = self.get_as_union() if unioned_value.type == "date": return date(unioned_value.value) - if unioned_value.type == "dateimte": - return dateimte(unioned_value.value) + if unioned_value.type == "datetime": + return datetime(unioned_value.value) if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(frozen=True) # type: ignore # Pydantic v2 @@ -86,8 +86,8 @@ class Config: frozen = True smart_union = True - class Dateimte(UniversalBaseModel): - type: typing.Literal["dateimte"] = "dateimte" + class Datetime(UniversalBaseModel): + type: typing.Literal["datetime"] = "datetime" value: typing.Optional[dt.datetime] = None if IS_PYDANTIC_V2: diff --git a/seed/python-sdk/unknown/README.md b/seed/python-sdk/unknown/README.md index b086a5027aa..ba0c00eaf79 100644 --- a/seed/python-sdk/unknown/README.md +++ b/seed/python-sdk/unknown/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/unknown/src/seed/core/http_client.py b/seed/python-sdk/unknown/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/unknown/src/seed/core/http_client.py +++ b/seed/python-sdk/unknown/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/validation/no-custom-config/README.md b/seed/python-sdk/validation/no-custom-config/README.md index a89bdf377b0..684acd44953 100644 --- a/seed/python-sdk/validation/no-custom-config/README.md +++ b/seed/python-sdk/validation/no-custom-config/README.md @@ -79,10 +79,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/validation/no-custom-config/src/seed/core/http_client.py b/seed/python-sdk/validation/no-custom-config/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/validation/no-custom-config/src/seed/core/http_client.py +++ b/seed/python-sdk/validation/no-custom-config/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/validation/with-defaults/README.md b/seed/python-sdk/validation/with-defaults/README.md index a89bdf377b0..684acd44953 100644 --- a/seed/python-sdk/validation/with-defaults/README.md +++ b/seed/python-sdk/validation/with-defaults/README.md @@ -79,10 +79,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/validation/with-defaults/src/seed/core/http_client.py b/seed/python-sdk/validation/with-defaults/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/validation/with-defaults/src/seed/core/http_client.py +++ b/seed/python-sdk/validation/with-defaults/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py b/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/variables/README.md b/seed/python-sdk/variables/README.md index c270b2a1a65..964d4cd4268 100644 --- a/seed/python-sdk/variables/README.md +++ b/seed/python-sdk/variables/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/variables/src/seed/core/http_client.py b/seed/python-sdk/variables/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/variables/src/seed/core/http_client.py +++ b/seed/python-sdk/variables/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/version-no-default/README.md b/seed/python-sdk/version-no-default/README.md index 90f8e8b91c6..65f6948847e 100644 --- a/seed/python-sdk/version-no-default/README.md +++ b/seed/python-sdk/version-no-default/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/version-no-default/src/seed/core/http_client.py b/seed/python-sdk/version-no-default/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/version-no-default/src/seed/core/http_client.py +++ b/seed/python-sdk/version-no-default/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/version/README.md b/seed/python-sdk/version/README.md index 14011309663..4955e2f5a59 100644 --- a/seed/python-sdk/version/README.md +++ b/seed/python-sdk/version/README.md @@ -73,10 +73,10 @@ except ApiError as e: ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/python-sdk/version/src/seed/core/http_client.py b/seed/python-sdk/version/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/version/src/seed/core/http_client.py +++ b/seed/python-sdk/version/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/version/src/seed/core/pydantic_utilities.py b/seed/python-sdk/version/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/version/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/version/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/python-sdk/websocket/src/seed/core/http_client.py b/seed/python-sdk/websocket/src/seed/core/http_client.py index 1a1a1311a66..17b942cda4a 100644 --- a/seed/python-sdk/websocket/src/seed/core/http_client.py +++ b/seed/python-sdk/websocket/src/seed/core/http_client.py @@ -85,8 +85,8 @@ def _retry_timeout(response: httpx.Response, retries: int) -> float: def _should_retry(response: httpx.Response) -> bool: - retriable_400s = [429, 408, 409] - return response.status_code >= 500 or response.status_code in retriable_400s + retryable_400s = [429, 408, 409] + return response.status_code >= 500 or response.status_code in retryable_400s def remove_omit_from_dict( diff --git a/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py b/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py index ee8f0e4105f..ca1f4792962 100644 --- a/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py @@ -79,7 +79,7 @@ def to_jsonable_with_fallback( class UniversalBaseModel(pydantic.BaseModel): if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict( - # Allow fields begining with `model_` to be used in the model + # Allow fields beginning with `model_` to be used in the model protected_namespaces=(), ) # type: ignore # Pydantic v2 @@ -128,7 +128,7 @@ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]: Override the default dict method to `exclude_unset` by default. This function patches `exclude_unset` to work include fields within non-None default values. """ - # Note: the logic here is multi-plexed given the levers exposed in Pydantic V1 vs V2 + # Note: the logic here is multiplexed given the levers exposed in Pydantic V1 vs V2 # Pydantic V1's .dict can be extremely slow, so we do not want to call it twice. # # We'd ideally do the same for Pydantic V2, but it shells out to a library to serialize models diff --git a/seed/ruby-model/alias-extends/.rubocop.yml b/seed/ruby-model/alias-extends/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/alias-extends/.rubocop.yml +++ b/seed/ruby-model/alias-extends/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/alias/.rubocop.yml b/seed/ruby-model/alias/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/alias/.rubocop.yml +++ b/seed/ruby-model/alias/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/any-auth/.rubocop.yml b/seed/ruby-model/any-auth/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/any-auth/.rubocop.yml +++ b/seed/ruby-model/any-auth/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/api-wide-base-path/.rubocop.yml b/seed/ruby-model/api-wide-base-path/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/api-wide-base-path/.rubocop.yml +++ b/seed/ruby-model/api-wide-base-path/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/audiences/.rubocop.yml b/seed/ruby-model/audiences/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/audiences/.rubocop.yml +++ b/seed/ruby-model/audiences/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/auth-environment-variables/.rubocop.yml b/seed/ruby-model/auth-environment-variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/auth-environment-variables/.rubocop.yml +++ b/seed/ruby-model/auth-environment-variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/basic-auth-environment-variables/.rubocop.yml b/seed/ruby-model/basic-auth-environment-variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/basic-auth-environment-variables/.rubocop.yml +++ b/seed/ruby-model/basic-auth-environment-variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/basic-auth/.rubocop.yml b/seed/ruby-model/basic-auth/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/basic-auth/.rubocop.yml +++ b/seed/ruby-model/basic-auth/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/bearer-token-environment-variable/.rubocop.yml b/seed/ruby-model/bearer-token-environment-variable/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/bearer-token-environment-variable/.rubocop.yml +++ b/seed/ruby-model/bearer-token-environment-variable/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/bytes/.rubocop.yml b/seed/ruby-model/bytes/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/bytes/.rubocop.yml +++ b/seed/ruby-model/bytes/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/circular-references-advanced/.rubocop.yml b/seed/ruby-model/circular-references-advanced/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/circular-references-advanced/.rubocop.yml +++ b/seed/ruby-model/circular-references-advanced/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/cross-package-type-names/.rubocop.yml b/seed/ruby-model/cross-package-type-names/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/cross-package-type-names/.rubocop.yml +++ b/seed/ruby-model/cross-package-type-names/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/custom-auth/.rubocop.yml b/seed/ruby-model/custom-auth/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/custom-auth/.rubocop.yml +++ b/seed/ruby-model/custom-auth/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/enum/.rubocop.yml b/seed/ruby-model/enum/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/enum/.rubocop.yml +++ b/seed/ruby-model/enum/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/error-property/.rubocop.yml b/seed/ruby-model/error-property/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/error-property/.rubocop.yml +++ b/seed/ruby-model/error-property/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/examples/.rubocop.yml b/seed/ruby-model/examples/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/examples/.rubocop.yml +++ b/seed/ruby-model/examples/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/exhaustive/.mock/definition/endpoints/params.yml b/seed/ruby-model/exhaustive/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ruby-model/exhaustive/.mock/definition/endpoints/params.yml +++ b/seed/ruby-model/exhaustive/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ruby-model/exhaustive/.rubocop.yml b/seed/ruby-model/exhaustive/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/exhaustive/.rubocop.yml +++ b/seed/ruby-model/exhaustive/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/extends/.rubocop.yml b/seed/ruby-model/extends/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/extends/.rubocop.yml +++ b/seed/ruby-model/extends/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/extra-properties/.rubocop.yml b/seed/ruby-model/extra-properties/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/extra-properties/.rubocop.yml +++ b/seed/ruby-model/extra-properties/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/file-download/.rubocop.yml b/seed/ruby-model/file-download/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/file-download/.rubocop.yml +++ b/seed/ruby-model/file-download/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/file-upload/.mock/definition/service.yml b/seed/ruby-model/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/ruby-model/file-upload/.mock/definition/service.yml +++ b/seed/ruby-model/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/ruby-model/file-upload/.mock/ir.json b/seed/ruby-model/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/ruby-model/file-upload/.mock/ir.json +++ b/seed/ruby-model/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/ruby-model/file-upload/.rubocop.yml b/seed/ruby-model/file-upload/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/file-upload/.rubocop.yml +++ b/seed/ruby-model/file-upload/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/folders/.rubocop.yml b/seed/ruby-model/folders/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/folders/.rubocop.yml +++ b/seed/ruby-model/folders/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/idempotency-headers/.rubocop.yml b/seed/ruby-model/idempotency-headers/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/idempotency-headers/.rubocop.yml +++ b/seed/ruby-model/idempotency-headers/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/imdb/.rubocop.yml b/seed/ruby-model/imdb/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/imdb/.rubocop.yml +++ b/seed/ruby-model/imdb/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/license/.rubocop.yml b/seed/ruby-model/license/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/license/.rubocop.yml +++ b/seed/ruby-model/license/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/literal/.rubocop.yml b/seed/ruby-model/literal/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/literal/.rubocop.yml +++ b/seed/ruby-model/literal/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/mixed-case/.rubocop.yml b/seed/ruby-model/mixed-case/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/mixed-case/.rubocop.yml +++ b/seed/ruby-model/mixed-case/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/mixed-file-directory/.rubocop.yml b/seed/ruby-model/mixed-file-directory/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/mixed-file-directory/.rubocop.yml +++ b/seed/ruby-model/mixed-file-directory/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/multi-line-docs/.mock/definition/user.yml b/seed/ruby-model/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/ruby-model/multi-line-docs/.mock/definition/user.yml +++ b/seed/ruby-model/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/ruby-model/multi-line-docs/.rubocop.yml b/seed/ruby-model/multi-line-docs/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/multi-line-docs/.rubocop.yml +++ b/seed/ruby-model/multi-line-docs/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/multi-url-environment-no-default/.rubocop.yml b/seed/ruby-model/multi-url-environment-no-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/multi-url-environment-no-default/.rubocop.yml +++ b/seed/ruby-model/multi-url-environment-no-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/multi-url-environment/.rubocop.yml b/seed/ruby-model/multi-url-environment/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/multi-url-environment/.rubocop.yml +++ b/seed/ruby-model/multi-url-environment/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/no-environment/.rubocop.yml b/seed/ruby-model/no-environment/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/no-environment/.rubocop.yml +++ b/seed/ruby-model/no-environment/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/nullable/.rubocop.yml b/seed/ruby-model/nullable/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/nullable/.rubocop.yml +++ b/seed/ruby-model/nullable/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/oauth-client-credentials-custom/.rubocop.yml b/seed/ruby-model/oauth-client-credentials-custom/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/oauth-client-credentials-custom/.rubocop.yml +++ b/seed/ruby-model/oauth-client-credentials-custom/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/oauth-client-credentials-default/.rubocop.yml b/seed/ruby-model/oauth-client-credentials-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/oauth-client-credentials-default/.rubocop.yml +++ b/seed/ruby-model/oauth-client-credentials-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/oauth-client-credentials-environment-variables/.rubocop.yml b/seed/ruby-model/oauth-client-credentials-environment-variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/oauth-client-credentials-environment-variables/.rubocop.yml +++ b/seed/ruby-model/oauth-client-credentials-environment-variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/oauth-client-credentials-nested-root/.rubocop.yml b/seed/ruby-model/oauth-client-credentials-nested-root/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/oauth-client-credentials-nested-root/.rubocop.yml +++ b/seed/ruby-model/oauth-client-credentials-nested-root/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/oauth-client-credentials/.rubocop.yml b/seed/ruby-model/oauth-client-credentials/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/oauth-client-credentials/.rubocop.yml +++ b/seed/ruby-model/oauth-client-credentials/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/object/.rubocop.yml b/seed/ruby-model/object/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/object/.rubocop.yml +++ b/seed/ruby-model/object/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/objects-with-imports/.rubocop.yml b/seed/ruby-model/objects-with-imports/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/objects-with-imports/.rubocop.yml +++ b/seed/ruby-model/objects-with-imports/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/optional/.rubocop.yml b/seed/ruby-model/optional/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/optional/.rubocop.yml +++ b/seed/ruby-model/optional/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/package-yml/.rubocop.yml b/seed/ruby-model/package-yml/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/package-yml/.rubocop.yml +++ b/seed/ruby-model/package-yml/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/pagination/.mock/definition/users.yml b/seed/ruby-model/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/ruby-model/pagination/.mock/definition/users.yml +++ b/seed/ruby-model/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/ruby-model/pagination/.rubocop.yml b/seed/ruby-model/pagination/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/pagination/.rubocop.yml +++ b/seed/ruby-model/pagination/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/path-parameters/.rubocop.yml b/seed/ruby-model/path-parameters/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/path-parameters/.rubocop.yml +++ b/seed/ruby-model/path-parameters/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/plain-text/.rubocop.yml b/seed/ruby-model/plain-text/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/plain-text/.rubocop.yml +++ b/seed/ruby-model/plain-text/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/query-parameters/.rubocop.yml b/seed/ruby-model/query-parameters/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/query-parameters/.rubocop.yml +++ b/seed/ruby-model/query-parameters/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/reserved-keywords/.rubocop.yml b/seed/ruby-model/reserved-keywords/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/reserved-keywords/.rubocop.yml +++ b/seed/ruby-model/reserved-keywords/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/response-property/.rubocop.yml b/seed/ruby-model/response-property/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/response-property/.rubocop.yml +++ b/seed/ruby-model/response-property/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/server-sent-event-examples/.rubocop.yml b/seed/ruby-model/server-sent-event-examples/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/server-sent-event-examples/.rubocop.yml +++ b/seed/ruby-model/server-sent-event-examples/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/server-sent-events/.rubocop.yml b/seed/ruby-model/server-sent-events/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/server-sent-events/.rubocop.yml +++ b/seed/ruby-model/server-sent-events/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/simple-fhir/.rubocop.yml b/seed/ruby-model/simple-fhir/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/simple-fhir/.rubocop.yml +++ b/seed/ruby-model/simple-fhir/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/single-url-environment-default/.rubocop.yml b/seed/ruby-model/single-url-environment-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/single-url-environment-default/.rubocop.yml +++ b/seed/ruby-model/single-url-environment-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/single-url-environment-no-default/.rubocop.yml b/seed/ruby-model/single-url-environment-no-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/single-url-environment-no-default/.rubocop.yml +++ b/seed/ruby-model/single-url-environment-no-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/streaming-parameter/.rubocop.yml b/seed/ruby-model/streaming-parameter/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/streaming-parameter/.rubocop.yml +++ b/seed/ruby-model/streaming-parameter/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/streaming/.rubocop.yml b/seed/ruby-model/streaming/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/streaming/.rubocop.yml +++ b/seed/ruby-model/streaming/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/trace/.mock/definition/submission.yml b/seed/ruby-model/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ruby-model/trace/.mock/definition/submission.yml +++ b/seed/ruby-model/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ruby-model/trace/.rubocop.yml b/seed/ruby-model/trace/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/trace/.rubocop.yml +++ b/seed/ruby-model/trace/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page.rb b/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page.rb index 409b8d3140e..ad3d2e64c73 100644 --- a/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page.rb +++ b/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page.rb @@ -7,7 +7,7 @@ module SeedTraceClient class Submission class TraceResponsesPage - # @return [Integer] If present, use this to load subseqent pages. + # @return [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. attr_reader :offset # @return [Array] @@ -20,7 +20,7 @@ class TraceResponsesPage OMIT = Object.new - # @param offset [Integer] If present, use this to load subseqent pages. + # @param offset [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. # @param trace_responses [Array] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition diff --git a/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page_v_2.rb b/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page_v_2.rb index 92d60613b69..f735bd80a8e 100644 --- a/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page_v_2.rb +++ b/seed/ruby-model/trace/lib/seed_trace_client/submission/types/trace_responses_page_v_2.rb @@ -7,7 +7,7 @@ module SeedTraceClient class Submission class TraceResponsesPageV2 - # @return [Integer] If present, use this to load subseqent pages. + # @return [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. attr_reader :offset # @return [Array] @@ -20,7 +20,7 @@ class TraceResponsesPageV2 OMIT = Object.new - # @param offset [Integer] If present, use this to load subseqent pages. + # @param offset [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. # @param trace_responses [Array] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition diff --git a/seed/ruby-model/undiscriminated-unions/.rubocop.yml b/seed/ruby-model/undiscriminated-unions/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/undiscriminated-unions/.rubocop.yml +++ b/seed/ruby-model/undiscriminated-unions/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/unions/.mock/definition/types.yml b/seed/ruby-model/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/ruby-model/unions/.mock/definition/types.yml +++ b/seed/ruby-model/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/ruby-model/unions/.rubocop.yml b/seed/ruby-model/unions/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/unions/.rubocop.yml +++ b/seed/ruby-model/unions/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/unions/lib/seed_unions_client/types/types/union_with_optional_time.rb b/seed/ruby-model/unions/lib/seed_unions_client/types/types/union_with_optional_time.rb index 9c39b0ae3d1..b7f75872c1f 100644 --- a/seed/ruby-model/unions/lib/seed_unions_client/types/types/union_with_optional_time.rb +++ b/seed/ruby-model/unions/lib/seed_unions_client/types/types/union_with_optional_time.rb @@ -31,7 +31,7 @@ def self.from_json(json_object:) member = case struct.type when "date" Date.parse(json_object.value) unless json_object.value.nil? - when "dateimte" + when "datetime" DateTime.parse(json_object.value) unless json_object.value.nil? else Date.parse(json_object) unless json_object.nil? @@ -45,7 +45,7 @@ def self.from_json(json_object:) def to_json(*_args) case @discriminant when "date" - when "dateimte" + when "datetime" end { "type": @discriminant, "value": @member }.to_json @member.to_json @@ -61,7 +61,7 @@ def self.validate_raw(obj:) case obj.type when "date" obj.is_a?(Date) != false || raise("Passed value for field obj is not the expected type, validation failed.") - when "dateimte" + when "datetime" obj.is_a?(DateTime) != false || raise("Passed value for field obj is not the expected type, validation failed.") else raise("Passed value matched no type within the union, validation failed.") @@ -84,8 +84,8 @@ def self.date(member:) # @param member [DateTime] # @return [SeedUnionsClient::Types::UnionWithOptionalTime] - def self.dateimte(member:) - new(member: member, discriminant: "dateimte") + def self.datetime(member:) + new(member: member, discriminant: "datetime") end end end diff --git a/seed/ruby-model/unknown/.rubocop.yml b/seed/ruby-model/unknown/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/unknown/.rubocop.yml +++ b/seed/ruby-model/unknown/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/validation/.rubocop.yml b/seed/ruby-model/validation/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/validation/.rubocop.yml +++ b/seed/ruby-model/validation/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/variables/.rubocop.yml b/seed/ruby-model/variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/variables/.rubocop.yml +++ b/seed/ruby-model/variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/version-no-default/.rubocop.yml b/seed/ruby-model/version-no-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/version-no-default/.rubocop.yml +++ b/seed/ruby-model/version-no-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/version/.rubocop.yml b/seed/ruby-model/version/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/version/.rubocop.yml +++ b/seed/ruby-model/version/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-model/websocket/.rubocop.yml b/seed/ruby-model/websocket/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-model/websocket/.rubocop.yml +++ b/seed/ruby-model/websocket/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/alias-extends/.github/workflows/publish.yml b/seed/ruby-sdk/alias-extends/.github/workflows/publish.yml index 85ffc070b87..0b619b5ae7c 100644 --- a/seed/ruby-sdk/alias-extends/.github/workflows/publish.yml +++ b/seed/ruby-sdk/alias-extends/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/alias-extends/.rubocop.yml b/seed/ruby-sdk/alias-extends/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/alias-extends/.rubocop.yml +++ b/seed/ruby-sdk/alias-extends/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/alias/.github/workflows/publish.yml b/seed/ruby-sdk/alias/.github/workflows/publish.yml index a035b09d1da..27adc1a04b4 100644 --- a/seed/ruby-sdk/alias/.github/workflows/publish.yml +++ b/seed/ruby-sdk/alias/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/alias/.rubocop.yml b/seed/ruby-sdk/alias/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/alias/.rubocop.yml +++ b/seed/ruby-sdk/alias/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/any-auth/.github/workflows/publish.yml b/seed/ruby-sdk/any-auth/.github/workflows/publish.yml index ca88cc3e255..db68899a634 100644 --- a/seed/ruby-sdk/any-auth/.github/workflows/publish.yml +++ b/seed/ruby-sdk/any-auth/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/any-auth/.rubocop.yml b/seed/ruby-sdk/any-auth/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/any-auth/.rubocop.yml +++ b/seed/ruby-sdk/any-auth/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/api-wide-base-path/.github/workflows/publish.yml b/seed/ruby-sdk/api-wide-base-path/.github/workflows/publish.yml index 434ccd373f1..0d91da4247f 100644 --- a/seed/ruby-sdk/api-wide-base-path/.github/workflows/publish.yml +++ b/seed/ruby-sdk/api-wide-base-path/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/api-wide-base-path/.rubocop.yml b/seed/ruby-sdk/api-wide-base-path/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/api-wide-base-path/.rubocop.yml +++ b/seed/ruby-sdk/api-wide-base-path/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/audiences/.github/workflows/publish.yml b/seed/ruby-sdk/audiences/.github/workflows/publish.yml index 4915cc0942a..72a07509f05 100644 --- a/seed/ruby-sdk/audiences/.github/workflows/publish.yml +++ b/seed/ruby-sdk/audiences/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/audiences/.rubocop.yml b/seed/ruby-sdk/audiences/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/audiences/.rubocop.yml +++ b/seed/ruby-sdk/audiences/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/auth-environment-variables/.github/workflows/publish.yml b/seed/ruby-sdk/auth-environment-variables/.github/workflows/publish.yml index 2abd9994d0b..03ad1af503b 100644 --- a/seed/ruby-sdk/auth-environment-variables/.github/workflows/publish.yml +++ b/seed/ruby-sdk/auth-environment-variables/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/auth-environment-variables/.rubocop.yml b/seed/ruby-sdk/auth-environment-variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/auth-environment-variables/.rubocop.yml +++ b/seed/ruby-sdk/auth-environment-variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/basic-auth-environment-variables/.github/workflows/publish.yml b/seed/ruby-sdk/basic-auth-environment-variables/.github/workflows/publish.yml index b648d739cf3..aa0554db4b4 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/.github/workflows/publish.yml +++ b/seed/ruby-sdk/basic-auth-environment-variables/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/basic-auth-environment-variables/.mock/definition/api.yml b/seed/ruby-sdk/basic-auth-environment-variables/.mock/definition/api.yml index 828c6eced71..e7268b14768 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/.mock/definition/api.yml +++ b/seed/ruby-sdk/basic-auth-environment-variables/.mock/definition/api.yml @@ -7,7 +7,7 @@ auth-schemes: name: username env: USERNAME password: - name: password + name: accessToken env: PASSWORD error-discrimination: strategy: status-code diff --git a/seed/ruby-sdk/basic-auth-environment-variables/.rubocop.yml b/seed/ruby-sdk/basic-auth-environment-variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/.rubocop.yml +++ b/seed/ruby-sdk/basic-auth-environment-variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables.rb b/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables.rb index 7acafa117c4..c2a4fa370b5 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables.rb +++ b/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables.rb @@ -13,16 +13,16 @@ class Client # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. # @param timeout_in_seconds [Long] # @param username [String] - # @param password [String] + # @param access_token [String] # @return [SeedBasicAuthEnvironmentVariablesClient::Client] def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil, username: ENV["USERNAME"], - password: ENV["PASSWORD"]) + access_token: ENV["PASSWORD"]) @request_client = SeedBasicAuthEnvironmentVariablesClient::RequestClient.new( base_url: base_url, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, username: username, - password: password + access_token: access_token ) @basic_auth = SeedBasicAuthEnvironmentVariablesClient::BasicAuthClient.new(request_client: @request_client) end @@ -36,16 +36,16 @@ class AsyncClient # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. # @param timeout_in_seconds [Long] # @param username [String] - # @param password [String] + # @param access_token [String] # @return [SeedBasicAuthEnvironmentVariablesClient::AsyncClient] def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil, username: ENV["USERNAME"], - password: ENV["PASSWORD"]) + access_token: ENV["PASSWORD"]) @async_request_client = SeedBasicAuthEnvironmentVariablesClient::AsyncRequestClient.new( base_url: base_url, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, username: username, - password: password + access_token: access_token ) @basic_auth = SeedBasicAuthEnvironmentVariablesClient::AsyncBasicAuthClient.new(request_client: @async_request_client) end diff --git a/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables/basic_auth/client.rb b/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables/basic_auth/client.rb index c43692c12c2..cbcd178af91 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables/basic_auth/client.rb +++ b/seed/ruby-sdk/basic-auth-environment-variables/lib/fern_basic_auth_environment_variables/basic_auth/client.rb @@ -23,7 +23,7 @@ def initialize(request_client:) # basic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new( # base_url: "https://api.example.com", # username: "YOUR_USERNAME", - # password: "YOUR_PASSWORD" + # access_token: "YOUR_PASSWORD" # ) # basic_auth_environment_variables.basic_auth.get_with_basic_auth def get_with_basic_auth(request_options: nil) @@ -55,7 +55,7 @@ def get_with_basic_auth(request_options: nil) # basic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new( # base_url: "https://api.example.com", # username: "YOUR_USERNAME", - # password: "YOUR_PASSWORD" + # access_token: "YOUR_PASSWORD" # ) # basic_auth_environment_variables.basic_auth.post_with_basic_auth(request: {"key":"value"}) def post_with_basic_auth(request: nil, request_options: nil) @@ -95,7 +95,7 @@ def initialize(request_client:) # basic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new( # base_url: "https://api.example.com", # username: "YOUR_USERNAME", - # password: "YOUR_PASSWORD" + # access_token: "YOUR_PASSWORD" # ) # basic_auth_environment_variables.basic_auth.get_with_basic_auth def get_with_basic_auth(request_options: nil) @@ -130,7 +130,7 @@ def get_with_basic_auth(request_options: nil) # basic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new( # base_url: "https://api.example.com", # username: "YOUR_USERNAME", - # password: "YOUR_PASSWORD" + # access_token: "YOUR_PASSWORD" # ) # basic_auth_environment_variables.basic_auth.post_with_basic_auth(request: {"key":"value"}) def post_with_basic_auth(request: nil, request_options: nil) diff --git a/seed/ruby-sdk/basic-auth-environment-variables/lib/requests.rb b/seed/ruby-sdk/basic-auth-environment-variables/lib/requests.rb index 0011ed19086..cd58ee5bbe7 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/lib/requests.rb +++ b/seed/ruby-sdk/basic-auth-environment-variables/lib/requests.rb @@ -17,12 +17,12 @@ class RequestClient # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. # @param timeout_in_seconds [Long] # @param username [String] - # @param password [String] + # @param access_token [String] # @return [SeedBasicAuthEnvironmentVariablesClient::RequestClient] def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil, username: ENV["USERNAME"], - password: ENV["PASSWORD"]) + access_token: ENV["PASSWORD"]) @base_url = base_url - @basic_auth_token = "Basic #{Base64.encode64("#{username}:#{password}")}" + @basic_auth_token = "Basic #{Base64.encode64("#{username}:#{access_token}")}" @conn = Faraday.new do |faraday| faraday.request :json faraday.response :raise_error, include_request: true @@ -64,12 +64,12 @@ class AsyncRequestClient # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. # @param timeout_in_seconds [Long] # @param username [String] - # @param password [String] + # @param access_token [String] # @return [SeedBasicAuthEnvironmentVariablesClient::AsyncRequestClient] def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil, username: ENV["USERNAME"], - password: ENV["PASSWORD"]) + access_token: ENV["PASSWORD"]) @base_url = base_url - @basic_auth_token = "Basic #{Base64.encode64("#{username}:#{password}")}" + @basic_auth_token = "Basic #{Base64.encode64("#{username}:#{access_token}")}" @conn = Faraday.new do |faraday| faraday.request :json faraday.response :raise_error, include_request: true diff --git a/seed/ruby-sdk/basic-auth-environment-variables/snippet.json b/seed/ruby-sdk/basic-auth-environment-variables/snippet.json index dfff41126c9..481c6d55b34 100644 --- a/seed/ruby-sdk/basic-auth-environment-variables/snippet.json +++ b/seed/ruby-sdk/basic-auth-environment-variables/snippet.json @@ -7,7 +7,7 @@ "identifierOverride": "endpoint_basic-auth.getWithBasicAuth" }, "snippet": { - "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n password: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.get_with_basic_auth", + "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n access_token: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.get_with_basic_auth", "type": "ruby" } }, @@ -18,7 +18,7 @@ "identifierOverride": "endpoint_basic-auth.postWithBasicAuth" }, "snippet": { - "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n password: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.post_with_basic_auth(request: {\"key\":\"value\"})", + "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n access_token: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.post_with_basic_auth(request: {\"key\":\"value\"})", "type": "ruby" } }, @@ -29,7 +29,7 @@ "identifierOverride": "endpoint_basic-auth.getWithBasicAuth" }, "snippet": { - "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n password: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.get_with_basic_auth", + "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n access_token: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.get_with_basic_auth", "type": "ruby" } }, @@ -40,7 +40,7 @@ "identifierOverride": "endpoint_basic-auth.postWithBasicAuth" }, "snippet": { - "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n password: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.post_with_basic_auth(request: {\"key\":\"value\"})", + "client": "require \"fern_basic_auth_environment_variables\"\n\nbasic_auth_environment_variables = SeedBasicAuthEnvironmentVariablesClient::Client.new(\n base_url: \"https://api.example.com\",\n username: \"YOUR_USERNAME\",\n access_token: \"YOUR_PASSWORD\"\n)\nbasic_auth_environment_variables.basic_auth.post_with_basic_auth(request: {\"key\":\"value\"})", "type": "ruby" } } diff --git a/seed/ruby-sdk/basic-auth/.github/workflows/publish.yml b/seed/ruby-sdk/basic-auth/.github/workflows/publish.yml index 39531895110..5cf33245d2b 100644 --- a/seed/ruby-sdk/basic-auth/.github/workflows/publish.yml +++ b/seed/ruby-sdk/basic-auth/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/basic-auth/.rubocop.yml b/seed/ruby-sdk/basic-auth/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/basic-auth/.rubocop.yml +++ b/seed/ruby-sdk/basic-auth/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/bearer-token-environment-variable/.github/workflows/publish.yml b/seed/ruby-sdk/bearer-token-environment-variable/.github/workflows/publish.yml index 64b443dc4d1..49f33b72ee8 100644 --- a/seed/ruby-sdk/bearer-token-environment-variable/.github/workflows/publish.yml +++ b/seed/ruby-sdk/bearer-token-environment-variable/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/bearer-token-environment-variable/.rubocop.yml b/seed/ruby-sdk/bearer-token-environment-variable/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/bearer-token-environment-variable/.rubocop.yml +++ b/seed/ruby-sdk/bearer-token-environment-variable/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/bytes/.github/workflows/publish.yml b/seed/ruby-sdk/bytes/.github/workflows/publish.yml index 31d76c8b37d..90840ec6278 100644 --- a/seed/ruby-sdk/bytes/.github/workflows/publish.yml +++ b/seed/ruby-sdk/bytes/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/bytes/.rubocop.yml b/seed/ruby-sdk/bytes/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/bytes/.rubocop.yml +++ b/seed/ruby-sdk/bytes/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/circular-references-advanced/.github/workflows/publish.yml b/seed/ruby-sdk/circular-references-advanced/.github/workflows/publish.yml index ddec9a5f090..4d27784b411 100644 --- a/seed/ruby-sdk/circular-references-advanced/.github/workflows/publish.yml +++ b/seed/ruby-sdk/circular-references-advanced/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/circular-references-advanced/.rubocop.yml b/seed/ruby-sdk/circular-references-advanced/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/circular-references-advanced/.rubocop.yml +++ b/seed/ruby-sdk/circular-references-advanced/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/cross-package-type-names/.github/workflows/publish.yml b/seed/ruby-sdk/cross-package-type-names/.github/workflows/publish.yml index dbe23f9b6fc..4cbaf25b7a9 100644 --- a/seed/ruby-sdk/cross-package-type-names/.github/workflows/publish.yml +++ b/seed/ruby-sdk/cross-package-type-names/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/cross-package-type-names/.rubocop.yml b/seed/ruby-sdk/cross-package-type-names/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/cross-package-type-names/.rubocop.yml +++ b/seed/ruby-sdk/cross-package-type-names/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/custom-auth/.github/workflows/publish.yml b/seed/ruby-sdk/custom-auth/.github/workflows/publish.yml index 65e0c5fde9c..e49f0d17d6c 100644 --- a/seed/ruby-sdk/custom-auth/.github/workflows/publish.yml +++ b/seed/ruby-sdk/custom-auth/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/custom-auth/.rubocop.yml b/seed/ruby-sdk/custom-auth/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/custom-auth/.rubocop.yml +++ b/seed/ruby-sdk/custom-auth/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/enum/.github/workflows/publish.yml b/seed/ruby-sdk/enum/.github/workflows/publish.yml index 941e08dd559..c52a5fd41cd 100644 --- a/seed/ruby-sdk/enum/.github/workflows/publish.yml +++ b/seed/ruby-sdk/enum/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/enum/.rubocop.yml b/seed/ruby-sdk/enum/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/enum/.rubocop.yml +++ b/seed/ruby-sdk/enum/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/error-property/.github/workflows/publish.yml b/seed/ruby-sdk/error-property/.github/workflows/publish.yml index 377ddff2de0..8a4739c1db9 100644 --- a/seed/ruby-sdk/error-property/.github/workflows/publish.yml +++ b/seed/ruby-sdk/error-property/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/error-property/.rubocop.yml b/seed/ruby-sdk/error-property/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/error-property/.rubocop.yml +++ b/seed/ruby-sdk/error-property/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/examples/.github/workflows/publish.yml b/seed/ruby-sdk/examples/.github/workflows/publish.yml index a37142eeec3..a1b5615a3c3 100644 --- a/seed/ruby-sdk/examples/.github/workflows/publish.yml +++ b/seed/ruby-sdk/examples/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/examples/.rubocop.yml b/seed/ruby-sdk/examples/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/examples/.rubocop.yml +++ b/seed/ruby-sdk/examples/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/exhaustive/extra-deps/.github/workflows/publish.yml b/seed/ruby-sdk/exhaustive/extra-deps/.github/workflows/publish.yml index 1da1cd3dace..840ecf189c9 100644 --- a/seed/ruby-sdk/exhaustive/extra-deps/.github/workflows/publish.yml +++ b/seed/ruby-sdk/exhaustive/extra-deps/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/exhaustive/extra-deps/.mock/definition/endpoints/params.yml b/seed/ruby-sdk/exhaustive/extra-deps/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ruby-sdk/exhaustive/extra-deps/.mock/definition/endpoints/params.yml +++ b/seed/ruby-sdk/exhaustive/extra-deps/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ruby-sdk/exhaustive/extra-deps/.rubocop.yml b/seed/ruby-sdk/exhaustive/extra-deps/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/exhaustive/extra-deps/.rubocop.yml +++ b/seed/ruby-sdk/exhaustive/extra-deps/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/exhaustive/extra-deps/lib/fern_exhaustive/endpoints/params/client.rb b/seed/ruby-sdk/exhaustive/extra-deps/lib/fern_exhaustive/endpoints/params/client.rb index 11bb7831a5f..1385f60c1eb 100644 --- a/seed/ruby-sdk/exhaustive/extra-deps/lib/fern_exhaustive/endpoints/params/client.rb +++ b/seed/ruby-sdk/exhaustive/extra-deps/lib/fern_exhaustive/endpoints/params/client.rb @@ -105,13 +105,13 @@ def get_with_query(query:, number:, request_options: nil) # GET with multiple of same query param # # @param query [String] - # @param numer [Integer] + # @param number [Integer] # @param request_options [SeedExhaustiveClient::RequestOptions] # @return [Void] # @example # exhaustive = SeedExhaustiveClient::Client.new(base_url: "https://api.example.com", token: "YOUR_AUTH_TOKEN") - # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", numer: 1) - def get_with_allow_multiple_query(query:, numer:, request_options: nil) + # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", number: 1) + def get_with_allow_multiple_query(query:, number:, request_options: nil) @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.token unless request_options&.token.nil? @@ -123,7 +123,7 @@ def get_with_allow_multiple_query(query:, numer:, request_options: nil) req.params = { **(request_options&.additional_query_parameters || {}), "query": query, - "numer": numer + "number": number }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact @@ -346,13 +346,13 @@ def get_with_query(query:, number:, request_options: nil) # GET with multiple of same query param # # @param query [String] - # @param numer [Integer] + # @param number [Integer] # @param request_options [SeedExhaustiveClient::RequestOptions] # @return [Void] # @example # exhaustive = SeedExhaustiveClient::Client.new(base_url: "https://api.example.com", token: "YOUR_AUTH_TOKEN") - # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", numer: 1) - def get_with_allow_multiple_query(query:, numer:, request_options: nil) + # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", number: 1) + def get_with_allow_multiple_query(query:, number:, request_options: nil) Async do @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -365,7 +365,7 @@ def get_with_allow_multiple_query(query:, numer:, request_options: nil) req.params = { **(request_options&.additional_query_parameters || {}), "query": query, - "numer": numer + "number": number }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact diff --git a/seed/ruby-sdk/exhaustive/extra-deps/snippet.json b/seed/ruby-sdk/exhaustive/extra-deps/snippet.json index 30a5222868b..7e0b025bb06 100644 --- a/seed/ruby-sdk/exhaustive/extra-deps/snippet.json +++ b/seed/ruby-sdk/exhaustive/extra-deps/snippet.json @@ -502,7 +502,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -590,7 +590,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -1360,7 +1360,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -1448,7 +1448,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, diff --git a/seed/ruby-sdk/exhaustive/flattened-module-structure/.github/workflows/publish.yml b/seed/ruby-sdk/exhaustive/flattened-module-structure/.github/workflows/publish.yml index 1da1cd3dace..840ecf189c9 100644 --- a/seed/ruby-sdk/exhaustive/flattened-module-structure/.github/workflows/publish.yml +++ b/seed/ruby-sdk/exhaustive/flattened-module-structure/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/exhaustive/flattened-module-structure/.mock/definition/endpoints/params.yml b/seed/ruby-sdk/exhaustive/flattened-module-structure/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ruby-sdk/exhaustive/flattened-module-structure/.mock/definition/endpoints/params.yml +++ b/seed/ruby-sdk/exhaustive/flattened-module-structure/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ruby-sdk/exhaustive/flattened-module-structure/.rubocop.yml b/seed/ruby-sdk/exhaustive/flattened-module-structure/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/exhaustive/flattened-module-structure/.rubocop.yml +++ b/seed/ruby-sdk/exhaustive/flattened-module-structure/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/exhaustive/flattened-module-structure/lib/fern_exhaustive/endpoints/params/client.rb b/seed/ruby-sdk/exhaustive/flattened-module-structure/lib/fern_exhaustive/endpoints/params/client.rb index 11bb7831a5f..1385f60c1eb 100644 --- a/seed/ruby-sdk/exhaustive/flattened-module-structure/lib/fern_exhaustive/endpoints/params/client.rb +++ b/seed/ruby-sdk/exhaustive/flattened-module-structure/lib/fern_exhaustive/endpoints/params/client.rb @@ -105,13 +105,13 @@ def get_with_query(query:, number:, request_options: nil) # GET with multiple of same query param # # @param query [String] - # @param numer [Integer] + # @param number [Integer] # @param request_options [SeedExhaustiveClient::RequestOptions] # @return [Void] # @example # exhaustive = SeedExhaustiveClient::Client.new(base_url: "https://api.example.com", token: "YOUR_AUTH_TOKEN") - # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", numer: 1) - def get_with_allow_multiple_query(query:, numer:, request_options: nil) + # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", number: 1) + def get_with_allow_multiple_query(query:, number:, request_options: nil) @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.token unless request_options&.token.nil? @@ -123,7 +123,7 @@ def get_with_allow_multiple_query(query:, numer:, request_options: nil) req.params = { **(request_options&.additional_query_parameters || {}), "query": query, - "numer": numer + "number": number }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact @@ -346,13 +346,13 @@ def get_with_query(query:, number:, request_options: nil) # GET with multiple of same query param # # @param query [String] - # @param numer [Integer] + # @param number [Integer] # @param request_options [SeedExhaustiveClient::RequestOptions] # @return [Void] # @example # exhaustive = SeedExhaustiveClient::Client.new(base_url: "https://api.example.com", token: "YOUR_AUTH_TOKEN") - # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", numer: 1) - def get_with_allow_multiple_query(query:, numer:, request_options: nil) + # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", number: 1) + def get_with_allow_multiple_query(query:, number:, request_options: nil) Async do @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -365,7 +365,7 @@ def get_with_allow_multiple_query(query:, numer:, request_options: nil) req.params = { **(request_options&.additional_query_parameters || {}), "query": query, - "numer": numer + "number": number }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact diff --git a/seed/ruby-sdk/exhaustive/flattened-module-structure/snippet.json b/seed/ruby-sdk/exhaustive/flattened-module-structure/snippet.json index 30a5222868b..7e0b025bb06 100644 --- a/seed/ruby-sdk/exhaustive/flattened-module-structure/snippet.json +++ b/seed/ruby-sdk/exhaustive/flattened-module-structure/snippet.json @@ -502,7 +502,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -590,7 +590,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -1360,7 +1360,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -1448,7 +1448,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, diff --git a/seed/ruby-sdk/exhaustive/no-custom-config/.github/workflows/publish.yml b/seed/ruby-sdk/exhaustive/no-custom-config/.github/workflows/publish.yml index 1da1cd3dace..840ecf189c9 100644 --- a/seed/ruby-sdk/exhaustive/no-custom-config/.github/workflows/publish.yml +++ b/seed/ruby-sdk/exhaustive/no-custom-config/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml b/seed/ruby-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ruby-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml +++ b/seed/ruby-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ruby-sdk/exhaustive/no-custom-config/.rubocop.yml b/seed/ruby-sdk/exhaustive/no-custom-config/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/exhaustive/no-custom-config/.rubocop.yml +++ b/seed/ruby-sdk/exhaustive/no-custom-config/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/exhaustive/no-custom-config/lib/fern_exhaustive/endpoints/params/client.rb b/seed/ruby-sdk/exhaustive/no-custom-config/lib/fern_exhaustive/endpoints/params/client.rb index 11bb7831a5f..1385f60c1eb 100644 --- a/seed/ruby-sdk/exhaustive/no-custom-config/lib/fern_exhaustive/endpoints/params/client.rb +++ b/seed/ruby-sdk/exhaustive/no-custom-config/lib/fern_exhaustive/endpoints/params/client.rb @@ -105,13 +105,13 @@ def get_with_query(query:, number:, request_options: nil) # GET with multiple of same query param # # @param query [String] - # @param numer [Integer] + # @param number [Integer] # @param request_options [SeedExhaustiveClient::RequestOptions] # @return [Void] # @example # exhaustive = SeedExhaustiveClient::Client.new(base_url: "https://api.example.com", token: "YOUR_AUTH_TOKEN") - # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", numer: 1) - def get_with_allow_multiple_query(query:, numer:, request_options: nil) + # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", number: 1) + def get_with_allow_multiple_query(query:, number:, request_options: nil) @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.token unless request_options&.token.nil? @@ -123,7 +123,7 @@ def get_with_allow_multiple_query(query:, numer:, request_options: nil) req.params = { **(request_options&.additional_query_parameters || {}), "query": query, - "numer": numer + "number": number }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact @@ -346,13 +346,13 @@ def get_with_query(query:, number:, request_options: nil) # GET with multiple of same query param # # @param query [String] - # @param numer [Integer] + # @param number [Integer] # @param request_options [SeedExhaustiveClient::RequestOptions] # @return [Void] # @example # exhaustive = SeedExhaustiveClient::Client.new(base_url: "https://api.example.com", token: "YOUR_AUTH_TOKEN") - # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", numer: 1) - def get_with_allow_multiple_query(query:, numer:, request_options: nil) + # exhaustive.endpoints.params.get_with_allow_multiple_query(query: "query", number: 1) + def get_with_allow_multiple_query(query:, number:, request_options: nil) Async do @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -365,7 +365,7 @@ def get_with_allow_multiple_query(query:, numer:, request_options: nil) req.params = { **(request_options&.additional_query_parameters || {}), "query": query, - "numer": numer + "number": number }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact diff --git a/seed/ruby-sdk/exhaustive/no-custom-config/snippet.json b/seed/ruby-sdk/exhaustive/no-custom-config/snippet.json index 30a5222868b..7e0b025bb06 100644 --- a/seed/ruby-sdk/exhaustive/no-custom-config/snippet.json +++ b/seed/ruby-sdk/exhaustive/no-custom-config/snippet.json @@ -502,7 +502,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -590,7 +590,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -1360,7 +1360,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, @@ -1448,7 +1448,7 @@ "identifierOverride": "endpoint_endpoints/params.getWithAllowMultipleQuery" }, "snippet": { - "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", numer: 1)", + "client": "require \"fern_exhaustive\"\n\nexhaustive = SeedExhaustiveClient::Client.new(base_url: \"https://api.example.com\", token: \"YOUR_AUTH_TOKEN\")\nexhaustive.endpoints.params.get_with_allow_multiple_query(query: \"query\", number: 1)", "type": "ruby" } }, diff --git a/seed/ruby-sdk/extends/.github/workflows/publish.yml b/seed/ruby-sdk/extends/.github/workflows/publish.yml index 5c4aabea579..e3594ba6b9d 100644 --- a/seed/ruby-sdk/extends/.github/workflows/publish.yml +++ b/seed/ruby-sdk/extends/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/extends/.rubocop.yml b/seed/ruby-sdk/extends/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/extends/.rubocop.yml +++ b/seed/ruby-sdk/extends/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/extra-properties/.github/workflows/publish.yml b/seed/ruby-sdk/extra-properties/.github/workflows/publish.yml index ced72d02f86..20630aa225b 100644 --- a/seed/ruby-sdk/extra-properties/.github/workflows/publish.yml +++ b/seed/ruby-sdk/extra-properties/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/extra-properties/.rubocop.yml b/seed/ruby-sdk/extra-properties/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/extra-properties/.rubocop.yml +++ b/seed/ruby-sdk/extra-properties/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/file-download/.github/workflows/publish.yml b/seed/ruby-sdk/file-download/.github/workflows/publish.yml index 5b24022f651..2d661178fd6 100644 --- a/seed/ruby-sdk/file-download/.github/workflows/publish.yml +++ b/seed/ruby-sdk/file-download/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/file-download/.rubocop.yml b/seed/ruby-sdk/file-download/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/file-download/.rubocop.yml +++ b/seed/ruby-sdk/file-download/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/file-upload/.github/workflows/publish.yml b/seed/ruby-sdk/file-upload/.github/workflows/publish.yml index c6fc8a85695..14ac8117e89 100644 --- a/seed/ruby-sdk/file-upload/.github/workflows/publish.yml +++ b/seed/ruby-sdk/file-upload/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/file-upload/.mock/definition/service.yml b/seed/ruby-sdk/file-upload/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/ruby-sdk/file-upload/.mock/definition/service.yml +++ b/seed/ruby-sdk/file-upload/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/ruby-sdk/file-upload/.mock/ir.json b/seed/ruby-sdk/file-upload/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/ruby-sdk/file-upload/.mock/ir.json +++ b/seed/ruby-sdk/file-upload/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/ruby-sdk/file-upload/.rubocop.yml b/seed/ruby-sdk/file-upload/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/file-upload/.rubocop.yml +++ b/seed/ruby-sdk/file-upload/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/folders/.github/workflows/publish.yml b/seed/ruby-sdk/folders/.github/workflows/publish.yml index ce769d24360..d746603c829 100644 --- a/seed/ruby-sdk/folders/.github/workflows/publish.yml +++ b/seed/ruby-sdk/folders/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/folders/.rubocop.yml b/seed/ruby-sdk/folders/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/folders/.rubocop.yml +++ b/seed/ruby-sdk/folders/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/idempotency-headers/.github/workflows/publish.yml b/seed/ruby-sdk/idempotency-headers/.github/workflows/publish.yml index a18d4ce7584..bcf984f5bf2 100644 --- a/seed/ruby-sdk/idempotency-headers/.github/workflows/publish.yml +++ b/seed/ruby-sdk/idempotency-headers/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/idempotency-headers/.rubocop.yml b/seed/ruby-sdk/idempotency-headers/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/idempotency-headers/.rubocop.yml +++ b/seed/ruby-sdk/idempotency-headers/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/imdb/.github/workflows/publish.yml b/seed/ruby-sdk/imdb/.github/workflows/publish.yml index 44f14f020a2..f37cba5860b 100644 --- a/seed/ruby-sdk/imdb/.github/workflows/publish.yml +++ b/seed/ruby-sdk/imdb/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/imdb/.rubocop.yml b/seed/ruby-sdk/imdb/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/imdb/.rubocop.yml +++ b/seed/ruby-sdk/imdb/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/license/.github/workflows/publish.yml b/seed/ruby-sdk/license/.github/workflows/publish.yml index 5e2ecc90264..5d1f0be7576 100644 --- a/seed/ruby-sdk/license/.github/workflows/publish.yml +++ b/seed/ruby-sdk/license/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/license/.rubocop.yml b/seed/ruby-sdk/license/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/license/.rubocop.yml +++ b/seed/ruby-sdk/license/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/literal/.github/workflows/publish.yml b/seed/ruby-sdk/literal/.github/workflows/publish.yml index 403641050b0..efd4873c56a 100644 --- a/seed/ruby-sdk/literal/.github/workflows/publish.yml +++ b/seed/ruby-sdk/literal/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/literal/.mock/definition/inlined.yml b/seed/ruby-sdk/literal/.mock/definition/inlined.yml index c2834c5c50c..6c9fc180745 100644 --- a/seed/ruby-sdk/literal/.mock/definition/inlined.yml +++ b/seed/ruby-sdk/literal/.mock/definition/inlined.yml @@ -13,6 +13,12 @@ types: properties: myLiteral: literal<"How super cool"> + UndiscriminatedLiteral: + discriminated: false + union: + - string + - literal<"$ending"> + service: auth: false base-path: "" diff --git a/seed/ruby-sdk/literal/.mock/definition/reference.yml b/seed/ruby-sdk/literal/.mock/definition/reference.yml index ec164521928..cd64b20c29f 100644 --- a/seed/ruby-sdk/literal/.mock/definition/reference.yml +++ b/seed/ruby-sdk/literal/.mock/definition/reference.yml @@ -7,6 +7,7 @@ types: prompt: literal<"You are a helpful assistant"> query: string stream: literal + ending: literal<"$ending"> context: SomeLiteral maybeContext: optional containerObject: ContainerObject diff --git a/seed/ruby-sdk/literal/.rubocop.yml b/seed/ruby-sdk/literal/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/literal/.rubocop.yml +++ b/seed/ruby-sdk/literal/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/literal/lib/fern_literal/inlined/types/undiscriminated_literal.rb b/seed/ruby-sdk/literal/lib/fern_literal/inlined/types/undiscriminated_literal.rb new file mode 100644 index 00000000000..473c5d0add2 --- /dev/null +++ b/seed/ruby-sdk/literal/lib/fern_literal/inlined/types/undiscriminated_literal.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +require "json" + +module SeedLiteralClient + class Inlined + class UndiscriminatedLiteral + # Deserialize a JSON object to an instance of UndiscriminatedLiteral + # + # @param json_object [String] + # @return [SeedLiteralClient::Inlined::UndiscriminatedLiteral] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/seed/ruby-sdk/literal/lib/fern_literal/reference/client.rb b/seed/ruby-sdk/literal/lib/fern_literal/reference/client.rb index 8e7cc2505a3..c0d1bf76a26 100644 --- a/seed/ruby-sdk/literal/lib/fern_literal/reference/client.rb +++ b/seed/ruby-sdk/literal/lib/fern_literal/reference/client.rb @@ -20,6 +20,7 @@ def initialize(request_client:) # * :prompt (String) # * :query (String) # * :stream (Boolean) + # * :ending (String) # * :context (SeedLiteralClient::Reference::SOME_LITERAL) # * :maybe_context (SeedLiteralClient::Reference::SOME_LITERAL) # * :container_object (Hash) @@ -70,6 +71,7 @@ def initialize(request_client:) # * :prompt (String) # * :query (String) # * :stream (Boolean) + # * :ending (String) # * :context (SeedLiteralClient::Reference::SOME_LITERAL) # * :maybe_context (SeedLiteralClient::Reference::SOME_LITERAL) # * :container_object (Hash) diff --git a/seed/ruby-sdk/literal/lib/fern_literal/reference/types/send_request.rb b/seed/ruby-sdk/literal/lib/fern_literal/reference/types/send_request.rb index 790a35d1ecf..ecc3387da1e 100644 --- a/seed/ruby-sdk/literal/lib/fern_literal/reference/types/send_request.rb +++ b/seed/ruby-sdk/literal/lib/fern_literal/reference/types/send_request.rb @@ -14,6 +14,8 @@ class SendRequest attr_reader :query # @return [Boolean] attr_reader :stream + # @return [String] + attr_reader :ending # @return [SeedLiteralClient::Reference::SOME_LITERAL] attr_reader :context # @return [SeedLiteralClient::Reference::SOME_LITERAL] @@ -31,16 +33,18 @@ class SendRequest # @param prompt [String] # @param query [String] # @param stream [Boolean] + # @param ending [String] # @param context [SeedLiteralClient::Reference::SOME_LITERAL] # @param maybe_context [SeedLiteralClient::Reference::SOME_LITERAL] # @param container_object [SeedLiteralClient::Reference::ContainerObject] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [SeedLiteralClient::Reference::SendRequest] - def initialize(prompt:, query:, stream:, context:, container_object:, maybe_context: OMIT, + def initialize(prompt:, query:, stream:, ending:, context:, container_object:, maybe_context: OMIT, additional_properties: nil) @prompt = prompt @query = query @stream = stream + @ending = ending @context = context @maybe_context = maybe_context if maybe_context != OMIT @container_object = container_object @@ -49,6 +53,7 @@ def initialize(prompt:, query:, stream:, context:, container_object:, maybe_cont "prompt": prompt, "query": query, "stream": stream, + "ending": ending, "context": context, "maybeContext": maybe_context, "containerObject": container_object @@ -67,6 +72,7 @@ def self.from_json(json_object:) prompt = parsed_json["prompt"] query = parsed_json["query"] stream = parsed_json["stream"] + ending = parsed_json["ending"] context = parsed_json["context"] maybe_context = parsed_json["maybeContext"] if parsed_json["containerObject"].nil? @@ -79,6 +85,7 @@ def self.from_json(json_object:) prompt: prompt, query: query, stream: stream, + ending: ending, context: context, maybe_context: maybe_context, container_object: container_object, @@ -103,6 +110,7 @@ def self.validate_raw(obj:) obj.prompt.is_a?(String) != false || raise("Passed value for field obj.prompt is not the expected type, validation failed.") obj.query.is_a?(String) != false || raise("Passed value for field obj.query is not the expected type, validation failed.") obj.stream.is_a?(Boolean) != false || raise("Passed value for field obj.stream is not the expected type, validation failed.") + obj.ending.is_a?(String) != false || raise("Passed value for field obj.ending is not the expected type, validation failed.") obj.context.is_a?(String) != false || raise("Passed value for field obj.context is not the expected type, validation failed.") obj.maybe_context&.is_a?(String) != false || raise("Passed value for field obj.maybe_context is not the expected type, validation failed.") SeedLiteralClient::Reference::ContainerObject.validate_raw(obj: obj.container_object) diff --git a/seed/ruby-sdk/literal/lib/types_export.rb b/seed/ruby-sdk/literal/lib/types_export.rb index 6fda9cb8973..03b2c114001 100644 --- a/seed/ruby-sdk/literal/lib/types_export.rb +++ b/seed/ruby-sdk/literal/lib/types_export.rb @@ -4,6 +4,7 @@ require_relative "fern_literal/inlined/types/some_aliased_literal" require_relative "fern_literal/inlined/types/a_top_level_literal" require_relative "fern_literal/inlined/types/a_nested_literal" +require_relative "fern_literal/inlined/types/undiscriminated_literal" require_relative "fern_literal/query/types/alias_to_prompt" require_relative "fern_literal/query/types/alias_to_stream" require_relative "fern_literal/reference/types/send_request" diff --git a/seed/ruby-sdk/mixed-case/.github/workflows/publish.yml b/seed/ruby-sdk/mixed-case/.github/workflows/publish.yml index 2bad1c0d37f..d19016d30d9 100644 --- a/seed/ruby-sdk/mixed-case/.github/workflows/publish.yml +++ b/seed/ruby-sdk/mixed-case/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/mixed-case/.rubocop.yml b/seed/ruby-sdk/mixed-case/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/mixed-case/.rubocop.yml +++ b/seed/ruby-sdk/mixed-case/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/mixed-file-directory/.github/workflows/publish.yml b/seed/ruby-sdk/mixed-file-directory/.github/workflows/publish.yml index ad47258c129..ea8abf7d034 100644 --- a/seed/ruby-sdk/mixed-file-directory/.github/workflows/publish.yml +++ b/seed/ruby-sdk/mixed-file-directory/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/mixed-file-directory/.rubocop.yml b/seed/ruby-sdk/mixed-file-directory/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/mixed-file-directory/.rubocop.yml +++ b/seed/ruby-sdk/mixed-file-directory/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/multi-line-docs/.github/workflows/publish.yml b/seed/ruby-sdk/multi-line-docs/.github/workflows/publish.yml index 4d436caebea..dad543c0189 100644 --- a/seed/ruby-sdk/multi-line-docs/.github/workflows/publish.yml +++ b/seed/ruby-sdk/multi-line-docs/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/multi-line-docs/.mock/definition/user.yml b/seed/ruby-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/ruby-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/ruby-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/ruby-sdk/multi-line-docs/.rubocop.yml b/seed/ruby-sdk/multi-line-docs/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/multi-line-docs/.rubocop.yml +++ b/seed/ruby-sdk/multi-line-docs/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/multi-line-docs/lib/fern_multi_line_docs/user/client.rb b/seed/ruby-sdk/multi-line-docs/lib/fern_multi_line_docs/user/client.rb index 8a938b2c4e2..6a68a6ab36b 100644 --- a/seed/ruby-sdk/multi-line-docs/lib/fern_multi_line_docs/user/client.rb +++ b/seed/ruby-sdk/multi-line-docs/lib/fern_multi_line_docs/user/client.rb @@ -49,7 +49,7 @@ def get_user(user_id:, request_options: nil) # @param name [String] The name of the user to create. # This name is unique to each user. # @param age [Integer] The age of the user. - # This propery is not required. + # This property is not required. # @param request_options [SeedMultiLineDocsClient::RequestOptions] # @return [SeedMultiLineDocsClient::User::User] # @example @@ -119,7 +119,7 @@ def get_user(user_id:, request_options: nil) # @param name [String] The name of the user to create. # This name is unique to each user. # @param age [Integer] The age of the user. - # This propery is not required. + # This property is not required. # @param request_options [SeedMultiLineDocsClient::RequestOptions] # @return [SeedMultiLineDocsClient::User::User] # @example diff --git a/seed/ruby-sdk/multi-url-environment-no-default/.github/workflows/publish.yml b/seed/ruby-sdk/multi-url-environment-no-default/.github/workflows/publish.yml index 974a52cd662..a0f71a749e0 100644 --- a/seed/ruby-sdk/multi-url-environment-no-default/.github/workflows/publish.yml +++ b/seed/ruby-sdk/multi-url-environment-no-default/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/multi-url-environment-no-default/.rubocop.yml b/seed/ruby-sdk/multi-url-environment-no-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/multi-url-environment-no-default/.rubocop.yml +++ b/seed/ruby-sdk/multi-url-environment-no-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/multi-url-environment/.github/workflows/publish.yml b/seed/ruby-sdk/multi-url-environment/.github/workflows/publish.yml index 2457b4b935f..309cd12a735 100644 --- a/seed/ruby-sdk/multi-url-environment/.github/workflows/publish.yml +++ b/seed/ruby-sdk/multi-url-environment/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/multi-url-environment/.rubocop.yml b/seed/ruby-sdk/multi-url-environment/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/multi-url-environment/.rubocop.yml +++ b/seed/ruby-sdk/multi-url-environment/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/no-environment/.github/workflows/publish.yml b/seed/ruby-sdk/no-environment/.github/workflows/publish.yml index 3555fe9eec5..4c0576be3ef 100644 --- a/seed/ruby-sdk/no-environment/.github/workflows/publish.yml +++ b/seed/ruby-sdk/no-environment/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/no-environment/.rubocop.yml b/seed/ruby-sdk/no-environment/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/no-environment/.rubocop.yml +++ b/seed/ruby-sdk/no-environment/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/nullable/.github/workflows/publish.yml b/seed/ruby-sdk/nullable/.github/workflows/publish.yml new file mode 100644 index 00000000000..223a0d38b98 --- /dev/null +++ b/seed/ruby-sdk/nullable/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: [push] +jobs: + publish: + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + + - name: Test gem + run: bundle install && bundle exec rake test + + - name: Build and Push Gem + env: + GEM_HOST_API_KEY: ${{ secrets. }} + run: | + gem build fern_nullable.gemspec + + gem push fern_nullable-*.gem --host diff --git a/seed/ruby-sdk/nullable/.gitignore b/seed/ruby-sdk/nullable/.gitignore new file mode 100644 index 00000000000..a97c182a2e1 --- /dev/null +++ b/seed/ruby-sdk/nullable/.gitignore @@ -0,0 +1,10 @@ +/.bundle/ +/.yardoc +/_yardoc/ +/coverage/ +/doc/ +/pkg/ +/spec/reports/ +/tmp/ +*.gem +.env diff --git a/seed/ruby-sdk/nullable/.mock/definition/api.yml b/seed/ruby-sdk/nullable/.mock/definition/api.yml new file mode 100644 index 00000000000..ab8ab2da8f3 --- /dev/null +++ b/seed/ruby-sdk/nullable/.mock/definition/api.yml @@ -0,0 +1 @@ +name: nullable diff --git a/seed/ruby-sdk/nullable/.mock/definition/nullable.yml b/seed/ruby-sdk/nullable/.mock/definition/nullable.yml new file mode 100644 index 00000000000..d13943a4c82 --- /dev/null +++ b/seed/ruby-sdk/nullable/.mock/definition/nullable.yml @@ -0,0 +1,67 @@ +types: + User: + properties: + name: string + tags: nullable> + metadata: optional> + + Metadata: + properties: + createdAt: datetime + updatedAt: datetime + avatar: nullable + activated: optional> + +service: + base-path: /users + auth: false + endpoints: + getUsers: + path: "" + method: GET + request: + name: GetUsersRequest + query-parameters: + usernames: + type: optional + allow-multiple: true + avatar: optional + activated: + type: optional + allow-multiple: true + tags: + type: optional> + allow-multiple: true + extra: optional> + response: list + + createUser: + path: "" + method: POST + request: + name: CreateUserRequest + body: + properties: + username: string + tags: optional> + metadata: optional + avatar: + type: optional> + response: User + + deleteUser: + method: DELETE + path: "" + request: + name: DeleteUserRequest + body: + properties: + username: + docs: >- + The user to delete. + type: optional> + validation: + minLength: 2 + maxLength: 1024 + response: + type: boolean diff --git a/seed/ruby-sdk/nullable/.mock/fern.config.json b/seed/ruby-sdk/nullable/.mock/fern.config.json new file mode 100644 index 00000000000..4c8e54ac313 --- /dev/null +++ b/seed/ruby-sdk/nullable/.mock/fern.config.json @@ -0,0 +1 @@ +{"organization": "fern-test", "version": "*"} \ No newline at end of file diff --git a/seed/ruby-sdk/nullable/.mock/generators.yml b/seed/ruby-sdk/nullable/.mock/generators.yml new file mode 100644 index 00000000000..0967ef424bc --- /dev/null +++ b/seed/ruby-sdk/nullable/.mock/generators.yml @@ -0,0 +1 @@ +{} diff --git a/seed/ruby-sdk/nullable/.rubocop.yml b/seed/ruby-sdk/nullable/.rubocop.yml new file mode 100644 index 00000000000..1e12390028f --- /dev/null +++ b/seed/ruby-sdk/nullable/.rubocop.yml @@ -0,0 +1,36 @@ +AllCops: + TargetRubyVersion: 2.7 + +Style/StringLiterals: + Enabled: true + EnforcedStyle: double_quotes + +Style/StringLiteralsInInterpolation: + Enabled: true + EnforcedStyle: double_quotes + +Layout/FirstHashElementLineBreak: + Enabled: true + +Layout/MultilineHashKeyLineBreaks: + Enabled: true + +# Generated files may be more complex than standard, disable +# these rules for now as a known limitation. +Metrics/ParameterLists: + Enabled: false + +Metrics/MethodLength: + Enabled: false + +Metrics/AbcSize: + Enabled: false + +Metrics/ClassLength: + Enabled: false + +Metrics/CyclomaticComplexity: + Enabled: false + +Metrics/PerceivedComplexity: + Enabled: false diff --git a/seed/ruby-sdk/nullable/Gemfile b/seed/ruby-sdk/nullable/Gemfile new file mode 100644 index 00000000000..49bd9cd0173 --- /dev/null +++ b/seed/ruby-sdk/nullable/Gemfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gemspec + +gem "minitest", "~> 5.0" +gem "rake", "~> 13.0" +gem "rubocop", "~> 1.21" diff --git a/seed/ruby-sdk/nullable/README.md b/seed/ruby-sdk/nullable/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/seed/ruby-sdk/nullable/Rakefile b/seed/ruby-sdk/nullable/Rakefile new file mode 100644 index 00000000000..2bdbce0cf2c --- /dev/null +++ b/seed/ruby-sdk/nullable/Rakefile @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +require "rake/testtask" +require "rubocop/rake_task" + +task default: %i[test rubocop] + +Rake::TestTask.new do |t| + t.pattern = "./test/**/test_*.rb" +end + +RuboCop::RakeTask.new diff --git a/seed/ruby-sdk/nullable/fern_nullable.gemspec b/seed/ruby-sdk/nullable/fern_nullable.gemspec new file mode 100644 index 00000000000..d8c6ec5e4f0 --- /dev/null +++ b/seed/ruby-sdk/nullable/fern_nullable.gemspec @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require_relative "lib/gemconfig" + +Gem::Specification.new do |spec| + spec.name = "fern_nullable" + spec.version = "0.0.1" + spec.authors = SeedNullableClient::Gemconfig::AUTHORS + spec.email = SeedNullableClient::Gemconfig::EMAIL + spec.summary = SeedNullableClient::Gemconfig::SUMMARY + spec.description = SeedNullableClient::Gemconfig::DESCRIPTION + spec.homepage = SeedNullableClient::Gemconfig::HOMEPAGE + spec.required_ruby_version = ">= 2.7.0" + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = SeedNullableClient::Gemconfig::SOURCE_CODE_URI + spec.metadata["changelog_uri"] = SeedNullableClient::Gemconfig::CHANGELOG_URI + spec.files = Dir.glob("lib/**/*") + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] + spec.add_dependency "async-http-faraday", ">= 0.0", "< 1.0" + spec.add_dependency "faraday", ">= 1.10", "< 3.0" + spec.add_dependency "faraday-net_http", ">= 1.0", "< 4.0" + spec.add_dependency "faraday-retry", ">= 1.0", "< 3.0" +end diff --git a/seed/ruby-sdk/nullable/lib/fern_nullable.rb b/seed/ruby-sdk/nullable/lib/fern_nullable.rb new file mode 100644 index 00000000000..1598245525b --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/fern_nullable.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +require_relative "types_export" +require_relative "requests" +require_relative "fern_nullable/nullable/client" + +module SeedNullableClient + class Client + # @return [SeedNullableClient::NullableClient] + attr_reader :nullable + + # @param base_url [String] + # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. + # @param timeout_in_seconds [Long] + # @return [SeedNullableClient::Client] + def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil) + @request_client = SeedNullableClient::RequestClient.new( + base_url: base_url, + max_retries: max_retries, + timeout_in_seconds: timeout_in_seconds + ) + @nullable = SeedNullableClient::NullableClient.new(request_client: @request_client) + end + end + + class AsyncClient + # @return [SeedNullableClient::AsyncNullableClient] + attr_reader :nullable + + # @param base_url [String] + # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. + # @param timeout_in_seconds [Long] + # @return [SeedNullableClient::AsyncClient] + def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil) + @async_request_client = SeedNullableClient::AsyncRequestClient.new( + base_url: base_url, + max_retries: max_retries, + timeout_in_seconds: timeout_in_seconds + ) + @nullable = SeedNullableClient::AsyncNullableClient.new(request_client: @async_request_client) + end + end +end diff --git a/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/client.rb b/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/client.rb new file mode 100644 index 00000000000..2190888380a --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/client.rb @@ -0,0 +1,250 @@ +# frozen_string_literal: true + +require_relative "../../requests" +require_relative "types/user" +require "json" +require_relative "types/metadata" +require "async" + +module SeedNullableClient + class NullableClient + # @return [SeedNullableClient::RequestClient] + attr_reader :request_client + + # @param request_client [SeedNullableClient::RequestClient] + # @return [SeedNullableClient::NullableClient] + def initialize(request_client:) + @request_client = request_client + end + + # @param usernames [String] + # @param avatar [String] + # @param activated [Boolean] + # @param tags [String] + # @param extra [Boolean] + # @param request_options [SeedNullableClient::RequestOptions] + # @return [Array] + # @example + # nullable = SeedNullableClient::Client.new(base_url: "https://api.example.com") + # nullable.nullable.get_users( + # usernames: "usernames", + # avatar: "avatar", + # activated: true + # ) + def get_users(usernames: nil, avatar: nil, activated: nil, tags: nil, extra: nil, request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "usernames": usernames, + "avatar": avatar, + "activated": activated, + "tags": tags, + "extra": extra + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/users" + end + parsed_json = JSON.parse(response.body) + parsed_json&.map do |item| + item = item.to_json + SeedNullableClient::Nullable::User.from_json(json_object: item) + end + end + + # @param username [String] + # @param tags [Array] + # @param metadata [Hash] Request of type SeedNullableClient::Nullable::Metadata, as a Hash + # * :created_at (DateTime) + # * :updated_at (DateTime) + # * :avatar (String) + # * :activated (Boolean) + # @param avatar [String] + # @param request_options [SeedNullableClient::RequestOptions] + # @return [SeedNullableClient::Nullable::User] + # @example + # nullable = SeedNullableClient::Client.new(base_url: "https://api.example.com") + # nullable.nullable.create_user( + # username: "username", + # tags: ["tags", "tags"], + # metadata: { created_at: DateTime.parse("2024-01-15T09:30:00.000Z"), updated_at: DateTime.parse("2024-01-15T09:30:00.000Z"), avatar: "avatar", activated: true }, + # avatar: "avatar" + # ) + def create_user(username:, tags: nil, metadata: nil, avatar: nil, request_options: nil) + response = @request_client.conn.post do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + req.body = { + **(request_options&.additional_body_parameters || {}), + username: username, + tags: tags, + metadata: metadata, + avatar: avatar + }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/users" + end + SeedNullableClient::Nullable::User.from_json(json_object: response.body) + end + + # @param username [String] The user to delete. + # @param request_options [SeedNullableClient::RequestOptions] + # @return [Boolean] + # @example + # nullable = SeedNullableClient::Client.new(base_url: "https://api.example.com") + # nullable.nullable.delete_user(username: "xy") + def delete_user(username: nil, request_options: nil) + response = @request_client.conn.delete do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + req.body = { **(request_options&.additional_body_parameters || {}), username: username }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/users" + end + JSON.parse(response.body) + end + end + + class AsyncNullableClient + # @return [SeedNullableClient::AsyncRequestClient] + attr_reader :request_client + + # @param request_client [SeedNullableClient::AsyncRequestClient] + # @return [SeedNullableClient::AsyncNullableClient] + def initialize(request_client:) + @request_client = request_client + end + + # @param usernames [String] + # @param avatar [String] + # @param activated [Boolean] + # @param tags [String] + # @param extra [Boolean] + # @param request_options [SeedNullableClient::RequestOptions] + # @return [Array] + # @example + # nullable = SeedNullableClient::Client.new(base_url: "https://api.example.com") + # nullable.nullable.get_users( + # usernames: "usernames", + # avatar: "avatar", + # activated: true + # ) + def get_users(usernames: nil, avatar: nil, activated: nil, tags: nil, extra: nil, request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "usernames": usernames, + "avatar": avatar, + "activated": activated, + "tags": tags, + "extra": extra + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/users" + end + parsed_json = JSON.parse(response.body) + parsed_json&.map do |item| + item = item.to_json + SeedNullableClient::Nullable::User.from_json(json_object: item) + end + end + end + + # @param username [String] + # @param tags [Array] + # @param metadata [Hash] Request of type SeedNullableClient::Nullable::Metadata, as a Hash + # * :created_at (DateTime) + # * :updated_at (DateTime) + # * :avatar (String) + # * :activated (Boolean) + # @param avatar [String] + # @param request_options [SeedNullableClient::RequestOptions] + # @return [SeedNullableClient::Nullable::User] + # @example + # nullable = SeedNullableClient::Client.new(base_url: "https://api.example.com") + # nullable.nullable.create_user( + # username: "username", + # tags: ["tags", "tags"], + # metadata: { created_at: DateTime.parse("2024-01-15T09:30:00.000Z"), updated_at: DateTime.parse("2024-01-15T09:30:00.000Z"), avatar: "avatar", activated: true }, + # avatar: "avatar" + # ) + def create_user(username:, tags: nil, metadata: nil, avatar: nil, request_options: nil) + Async do + response = @request_client.conn.post do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + req.body = { + **(request_options&.additional_body_parameters || {}), + username: username, + tags: tags, + metadata: metadata, + avatar: avatar + }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/users" + end + SeedNullableClient::Nullable::User.from_json(json_object: response.body) + end + end + + # @param username [String] The user to delete. + # @param request_options [SeedNullableClient::RequestOptions] + # @return [Boolean] + # @example + # nullable = SeedNullableClient::Client.new(base_url: "https://api.example.com") + # nullable.nullable.delete_user(username: "xy") + def delete_user(username: nil, request_options: nil) + Async do + response = @request_client.conn.delete do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + req.body = { **(request_options&.additional_body_parameters || {}), username: username }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/users" + end + parsed_json = JSON.parse(response.body) + parsed_json + end + end + end +end diff --git a/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/types/metadata.rb b/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/types/metadata.rb new file mode 100644 index 00000000000..5e3496b7316 --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/types/metadata.rb @@ -0,0 +1,89 @@ +# frozen_string_literal: true + +require "date" +require "ostruct" +require "json" + +module SeedNullableClient + class Nullable + class Metadata + # @return [DateTime] + attr_reader :created_at + # @return [DateTime] + attr_reader :updated_at + # @return [String] + attr_reader :avatar + # @return [Boolean] + attr_reader :activated + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param created_at [DateTime] + # @param updated_at [DateTime] + # @param avatar [String] + # @param activated [Boolean] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [SeedNullableClient::Nullable::Metadata] + def initialize(created_at:, updated_at:, avatar: OMIT, activated: OMIT, additional_properties: nil) + @created_at = created_at + @updated_at = updated_at + @avatar = avatar if avatar != OMIT + @activated = activated if activated != OMIT + @additional_properties = additional_properties + @_field_set = { + "createdAt": created_at, + "updatedAt": updated_at, + "avatar": avatar, + "activated": activated + }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of Metadata + # + # @param json_object [String] + # @return [SeedNullableClient::Nullable::Metadata] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + created_at = (DateTime.parse(parsed_json["createdAt"]) unless parsed_json["createdAt"].nil?) + updated_at = (DateTime.parse(parsed_json["updatedAt"]) unless parsed_json["updatedAt"].nil?) + avatar = parsed_json["avatar"] + activated = parsed_json["activated"] + new( + created_at: created_at, + updated_at: updated_at, + avatar: avatar, + activated: activated, + additional_properties: struct + ) + end + + # Serialize an instance of Metadata to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.") + obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.") + obj.avatar&.is_a?(String) != false || raise("Passed value for field obj.avatar is not the expected type, validation failed.") + obj.activated&.is_a?(Boolean) != false || raise("Passed value for field obj.activated is not the expected type, validation failed.") + end + end + end +end diff --git a/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/types/user.rb b/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/types/user.rb new file mode 100644 index 00000000000..726dae60e8a --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/fern_nullable/nullable/types/user.rb @@ -0,0 +1,82 @@ +# frozen_string_literal: true + +require_relative "metadata" +require "ostruct" +require "json" + +module SeedNullableClient + class Nullable + class User + # @return [String] + attr_reader :name + # @return [Array] + attr_reader :tags + # @return [SeedNullableClient::Nullable::Metadata] + attr_reader :metadata + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param name [String] + # @param tags [Array] + # @param metadata [SeedNullableClient::Nullable::Metadata] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [SeedNullableClient::Nullable::User] + def initialize(name:, tags: OMIT, metadata: OMIT, additional_properties: nil) + @name = name + @tags = tags if tags != OMIT + @metadata = metadata if metadata != OMIT + @additional_properties = additional_properties + @_field_set = { "name": name, "tags": tags, "metadata": metadata }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of User + # + # @param json_object [String] + # @return [SeedNullableClient::Nullable::User] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + name = parsed_json["name"] + tags = parsed_json["tags"] + if parsed_json["metadata"].nil? + metadata = nil + else + metadata = parsed_json["metadata"].to_json + metadata = SeedNullableClient::Nullable::Metadata.from_json(json_object: metadata) + end + new( + name: name, + tags: tags, + metadata: metadata, + additional_properties: struct + ) + end + + # Serialize an instance of User to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.") + obj.tags&.is_a?(Array) != false || raise("Passed value for field obj.tags is not the expected type, validation failed.") + obj.metadata.nil? || SeedNullableClient::Nullable::Metadata.validate_raw(obj: obj.metadata) + end + end + end +end diff --git a/seed/ruby-sdk/nullable/lib/gemconfig.rb b/seed/ruby-sdk/nullable/lib/gemconfig.rb new file mode 100644 index 00000000000..35ac990bf43 --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/gemconfig.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module SeedNullableClient + module Gemconfig + VERSION = "" + AUTHORS = [""].freeze + EMAIL = "" + SUMMARY = "" + DESCRIPTION = "" + HOMEPAGE = "https://github.com/nullable/fern" + SOURCE_CODE_URI = "https://github.com/nullable/fern" + CHANGELOG_URI = "https://github.com/nullable/fern/blob/master/CHANGELOG.md" + end +end diff --git a/seed/ruby-sdk/nullable/lib/requests.rb b/seed/ruby-sdk/nullable/lib/requests.rb new file mode 100644 index 00000000000..7e4988fe9d4 --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/requests.rb @@ -0,0 +1,132 @@ +# frozen_string_literal: true + +require "faraday" +require "faraday/retry" +require "async/http/faraday" + +module SeedNullableClient + class RequestClient + # @return [Faraday] + attr_reader :conn + # @return [String] + attr_reader :base_url + + # @param base_url [String] + # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. + # @param timeout_in_seconds [Long] + # @return [SeedNullableClient::RequestClient] + def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil) + @base_url = base_url + @conn = Faraday.new do |faraday| + faraday.request :json + faraday.response :raise_error, include_request: true + faraday.request :retry, { max: max_retries } unless max_retries.nil? + faraday.options.timeout = timeout_in_seconds unless timeout_in_seconds.nil? + end + end + + # @param request_options [SeedNullableClient::RequestOptions] + # @return [String] + def get_url(request_options: nil) + request_options&.base_url || @base_url + end + + # @return [Hash{String => String}] + def get_headers + { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "fern_nullable", "X-Fern-SDK-Version": "0.0.1" } + end + end + + class AsyncRequestClient + # @return [Faraday] + attr_reader :conn + # @return [String] + attr_reader :base_url + + # @param base_url [String] + # @param max_retries [Long] The number of times to retry a failed request, defaults to 2. + # @param timeout_in_seconds [Long] + # @return [SeedNullableClient::AsyncRequestClient] + def initialize(base_url: nil, max_retries: nil, timeout_in_seconds: nil) + @base_url = base_url + @conn = Faraday.new do |faraday| + faraday.request :json + faraday.response :raise_error, include_request: true + faraday.adapter :async_http + faraday.request :retry, { max: max_retries } unless max_retries.nil? + faraday.options.timeout = timeout_in_seconds unless timeout_in_seconds.nil? + end + end + + # @param request_options [SeedNullableClient::RequestOptions] + # @return [String] + def get_url(request_options: nil) + request_options&.base_url || @base_url + end + + # @return [Hash{String => String}] + def get_headers + { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "fern_nullable", "X-Fern-SDK-Version": "0.0.1" } + end + end + + # Additional options for request-specific configuration when calling APIs via the + # SDK. + class RequestOptions + # @return [String] + attr_reader :base_url + # @return [Hash{String => Object}] + attr_reader :additional_headers + # @return [Hash{String => Object}] + attr_reader :additional_query_parameters + # @return [Hash{String => Object}] + attr_reader :additional_body_parameters + # @return [Long] + attr_reader :timeout_in_seconds + + # @param base_url [String] + # @param additional_headers [Hash{String => Object}] + # @param additional_query_parameters [Hash{String => Object}] + # @param additional_body_parameters [Hash{String => Object}] + # @param timeout_in_seconds [Long] + # @return [SeedNullableClient::RequestOptions] + def initialize(base_url: nil, additional_headers: nil, additional_query_parameters: nil, + additional_body_parameters: nil, timeout_in_seconds: nil) + @base_url = base_url + @additional_headers = additional_headers + @additional_query_parameters = additional_query_parameters + @additional_body_parameters = additional_body_parameters + @timeout_in_seconds = timeout_in_seconds + end + end + + # Additional options for request-specific configuration when calling APIs via the + # SDK. + class IdempotencyRequestOptions + # @return [String] + attr_reader :base_url + # @return [Hash{String => Object}] + attr_reader :additional_headers + # @return [Hash{String => Object}] + attr_reader :additional_query_parameters + # @return [Hash{String => Object}] + attr_reader :additional_body_parameters + # @return [Long] + attr_reader :timeout_in_seconds + + # @param base_url [String] + # @param additional_headers [Hash{String => Object}] + # @param additional_query_parameters [Hash{String => Object}] + # @param additional_body_parameters [Hash{String => Object}] + # @param timeout_in_seconds [Long] + # @return [SeedNullableClient::IdempotencyRequestOptions] + def initialize(base_url: nil, additional_headers: nil, additional_query_parameters: nil, + additional_body_parameters: nil, timeout_in_seconds: nil) + @base_url = base_url + @additional_headers = additional_headers + @additional_query_parameters = additional_query_parameters + @additional_body_parameters = additional_body_parameters + @timeout_in_seconds = timeout_in_seconds + end + end +end diff --git a/seed/ruby-sdk/nullable/lib/types_export.rb b/seed/ruby-sdk/nullable/lib/types_export.rb new file mode 100644 index 00000000000..e25cefc088c --- /dev/null +++ b/seed/ruby-sdk/nullable/lib/types_export.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +require_relative "fern_nullable/nullable/types/user" +require_relative "fern_nullable/nullable/types/metadata" diff --git a/seed/ruby-sdk/nullable/snippet-templates.json b/seed/ruby-sdk/nullable/snippet-templates.json new file mode 100644 index 00000000000..e69de29bb2d diff --git a/seed/ruby-sdk/nullable/snippet.json b/seed/ruby-sdk/nullable/snippet.json new file mode 100644 index 00000000000..2caa4dcdf62 --- /dev/null +++ b/seed/ruby-sdk/nullable/snippet.json @@ -0,0 +1,71 @@ +{ + "endpoints": [ + { + "id": { + "path": "/users", + "method": "GET", + "identifierOverride": "endpoint_nullable.getUsers" + }, + "snippet": { + "client": "require \"fern_nullable\"\n\nnullable = SeedNullableClient::Client.new(base_url: \"https://api.example.com\")\nnullable.nullable.get_users(\n usernames: \"usernames\",\n avatar: \"avatar\",\n activated: true\n)", + "type": "ruby" + } + }, + { + "id": { + "path": "/users", + "method": "POST", + "identifierOverride": "endpoint_nullable.createUser" + }, + "snippet": { + "client": "require \"fern_nullable\"\n\nnullable = SeedNullableClient::Client.new(base_url: \"https://api.example.com\")\nnullable.nullable.create_user(\n username: \"username\",\n tags: [\"tags\", \"tags\"],\n metadata: { created_at: DateTime.parse(\"2024-01-15T09:30:00.000Z\"), updated_at: DateTime.parse(\"2024-01-15T09:30:00.000Z\"), avatar: \"avatar\", activated: true },\n avatar: \"avatar\"\n)", + "type": "ruby" + } + }, + { + "id": { + "path": "/users", + "method": "DELETE", + "identifierOverride": "endpoint_nullable.deleteUser" + }, + "snippet": { + "client": "require \"fern_nullable\"\n\nnullable = SeedNullableClient::Client.new(base_url: \"https://api.example.com\")\nnullable.nullable.delete_user(username: \"xy\")", + "type": "ruby" + } + }, + { + "id": { + "path": "/users", + "method": "GET", + "identifierOverride": "endpoint_nullable.getUsers" + }, + "snippet": { + "client": "require \"fern_nullable\"\n\nnullable = SeedNullableClient::Client.new(base_url: \"https://api.example.com\")\nnullable.nullable.get_users(\n usernames: \"usernames\",\n avatar: \"avatar\",\n activated: true\n)", + "type": "ruby" + } + }, + { + "id": { + "path": "/users", + "method": "POST", + "identifierOverride": "endpoint_nullable.createUser" + }, + "snippet": { + "client": "require \"fern_nullable\"\n\nnullable = SeedNullableClient::Client.new(base_url: \"https://api.example.com\")\nnullable.nullable.create_user(\n username: \"username\",\n tags: [\"tags\", \"tags\"],\n metadata: { created_at: DateTime.parse(\"2024-01-15T09:30:00.000Z\"), updated_at: DateTime.parse(\"2024-01-15T09:30:00.000Z\"), avatar: \"avatar\", activated: true },\n avatar: \"avatar\"\n)", + "type": "ruby" + } + }, + { + "id": { + "path": "/users", + "method": "DELETE", + "identifierOverride": "endpoint_nullable.deleteUser" + }, + "snippet": { + "client": "require \"fern_nullable\"\n\nnullable = SeedNullableClient::Client.new(base_url: \"https://api.example.com\")\nnullable.nullable.delete_user(username: \"xy\")", + "type": "ruby" + } + } + ], + "types": {} +} \ No newline at end of file diff --git a/seed/ruby-sdk/nullable/test/test_fern_nullable.rb b/seed/ruby-sdk/nullable/test/test_fern_nullable.rb new file mode 100644 index 00000000000..4dda6185287 --- /dev/null +++ b/seed/ruby-sdk/nullable/test/test_fern_nullable.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require_relative "test_helper" +require "fern_nullable" + +# Basic SeedNullableClient tests +class TestSeedNullableClient < Minitest::Test + def test_function + # SeedNullableClient::Client.new + end +end diff --git a/seed/ruby-sdk/nullable/test/test_helper.rb b/seed/ruby-sdk/nullable/test/test_helper.rb new file mode 100644 index 00000000000..aeb853cd384 --- /dev/null +++ b/seed/ruby-sdk/nullable/test/test_helper.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +$LOAD_PATH.unshift File.expand_path("../lib", __dir__) + +require "minitest/autorun" +require "fern_nullable" diff --git a/seed/ruby-sdk/oauth-client-credentials-custom/.github/workflows/publish.yml b/seed/ruby-sdk/oauth-client-credentials-custom/.github/workflows/publish.yml index 4125c73b9da..2799edb79eb 100644 --- a/seed/ruby-sdk/oauth-client-credentials-custom/.github/workflows/publish.yml +++ b/seed/ruby-sdk/oauth-client-credentials-custom/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/oauth-client-credentials-custom/.rubocop.yml b/seed/ruby-sdk/oauth-client-credentials-custom/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/oauth-client-credentials-custom/.rubocop.yml +++ b/seed/ruby-sdk/oauth-client-credentials-custom/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/oauth-client-credentials-default/.github/workflows/publish.yml b/seed/ruby-sdk/oauth-client-credentials-default/.github/workflows/publish.yml index 4bfa01fe7a1..73e5f357f1d 100644 --- a/seed/ruby-sdk/oauth-client-credentials-default/.github/workflows/publish.yml +++ b/seed/ruby-sdk/oauth-client-credentials-default/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/oauth-client-credentials-default/.rubocop.yml b/seed/ruby-sdk/oauth-client-credentials-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/oauth-client-credentials-default/.rubocop.yml +++ b/seed/ruby-sdk/oauth-client-credentials-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/oauth-client-credentials-environment-variables/.github/workflows/publish.yml b/seed/ruby-sdk/oauth-client-credentials-environment-variables/.github/workflows/publish.yml index 9191767c979..34fafe088d0 100644 --- a/seed/ruby-sdk/oauth-client-credentials-environment-variables/.github/workflows/publish.yml +++ b/seed/ruby-sdk/oauth-client-credentials-environment-variables/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/oauth-client-credentials-environment-variables/.rubocop.yml b/seed/ruby-sdk/oauth-client-credentials-environment-variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/oauth-client-credentials-environment-variables/.rubocop.yml +++ b/seed/ruby-sdk/oauth-client-credentials-environment-variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/oauth-client-credentials-nested-root/.github/workflows/publish.yml b/seed/ruby-sdk/oauth-client-credentials-nested-root/.github/workflows/publish.yml index 0aa48ee787e..39bfdaf8c99 100644 --- a/seed/ruby-sdk/oauth-client-credentials-nested-root/.github/workflows/publish.yml +++ b/seed/ruby-sdk/oauth-client-credentials-nested-root/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/oauth-client-credentials-nested-root/.rubocop.yml b/seed/ruby-sdk/oauth-client-credentials-nested-root/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/oauth-client-credentials-nested-root/.rubocop.yml +++ b/seed/ruby-sdk/oauth-client-credentials-nested-root/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/oauth-client-credentials/.github/workflows/publish.yml b/seed/ruby-sdk/oauth-client-credentials/.github/workflows/publish.yml index 738ee7331ea..9d3484fc753 100644 --- a/seed/ruby-sdk/oauth-client-credentials/.github/workflows/publish.yml +++ b/seed/ruby-sdk/oauth-client-credentials/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/oauth-client-credentials/.rubocop.yml b/seed/ruby-sdk/oauth-client-credentials/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/oauth-client-credentials/.rubocop.yml +++ b/seed/ruby-sdk/oauth-client-credentials/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/object/.github/workflows/publish.yml b/seed/ruby-sdk/object/.github/workflows/publish.yml index 95149d3921c..f1df8cd306b 100644 --- a/seed/ruby-sdk/object/.github/workflows/publish.yml +++ b/seed/ruby-sdk/object/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/object/.rubocop.yml b/seed/ruby-sdk/object/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/object/.rubocop.yml +++ b/seed/ruby-sdk/object/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/objects-with-imports/.github/workflows/publish.yml b/seed/ruby-sdk/objects-with-imports/.github/workflows/publish.yml index 8953c502d4d..0568187e7b9 100644 --- a/seed/ruby-sdk/objects-with-imports/.github/workflows/publish.yml +++ b/seed/ruby-sdk/objects-with-imports/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/objects-with-imports/.rubocop.yml b/seed/ruby-sdk/objects-with-imports/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/objects-with-imports/.rubocop.yml +++ b/seed/ruby-sdk/objects-with-imports/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/optional/.github/workflows/publish.yml b/seed/ruby-sdk/optional/.github/workflows/publish.yml index fd876f25327..791f6283674 100644 --- a/seed/ruby-sdk/optional/.github/workflows/publish.yml +++ b/seed/ruby-sdk/optional/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/optional/.rubocop.yml b/seed/ruby-sdk/optional/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/optional/.rubocop.yml +++ b/seed/ruby-sdk/optional/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/package-yml/.github/workflows/publish.yml b/seed/ruby-sdk/package-yml/.github/workflows/publish.yml index fce8eeaa725..6cf3543cdbf 100644 --- a/seed/ruby-sdk/package-yml/.github/workflows/publish.yml +++ b/seed/ruby-sdk/package-yml/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/package-yml/.rubocop.yml b/seed/ruby-sdk/package-yml/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/package-yml/.rubocop.yml +++ b/seed/ruby-sdk/package-yml/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/pagination/.github/workflows/publish.yml b/seed/ruby-sdk/pagination/.github/workflows/publish.yml index d2043780853..773521464ea 100644 --- a/seed/ruby-sdk/pagination/.github/workflows/publish.yml +++ b/seed/ruby-sdk/pagination/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/pagination/.mock/definition/users.yml b/seed/ruby-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/ruby-sdk/pagination/.mock/definition/users.yml +++ b/seed/ruby-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/ruby-sdk/pagination/.rubocop.yml b/seed/ruby-sdk/pagination/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/pagination/.rubocop.yml +++ b/seed/ruby-sdk/pagination/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/pagination/lib/fern_pagination/users/client.rb b/seed/ruby-sdk/pagination/lib/fern_pagination/users/client.rb index aa8e32261e7..8aa5774af1f 100644 --- a/seed/ruby-sdk/pagination/lib/fern_pagination/users/client.rb +++ b/seed/ruby-sdk/pagination/lib/fern_pagination/users/client.rb @@ -218,7 +218,7 @@ def list_with_body_offset_pagination(pagination: nil, request_options: nil) end # @param page [Integer] Defaults to first page - # @param limit [Integer] The maxiumum number of elements to return. + # @param limit [Integer] The maximum number of elements to return. # This is also used as the step size in this # paginated endpoint. # @param order [SeedPaginationClient::Users::Order] @@ -255,7 +255,7 @@ def list_with_offset_step_pagination(page: nil, limit: nil, order: nil, request_ end # @param page [Integer] Defaults to first page - # @param limit [Integer] The maxiumum number of elements to return. + # @param limit [Integer] The maximum number of elements to return. # This is also used as the step size in this # paginated endpoint. # @param order [SeedPaginationClient::Users::Order] @@ -609,7 +609,7 @@ def list_with_body_offset_pagination(pagination: nil, request_options: nil) end # @param page [Integer] Defaults to first page - # @param limit [Integer] The maxiumum number of elements to return. + # @param limit [Integer] The maximum number of elements to return. # This is also used as the step size in this # paginated endpoint. # @param order [SeedPaginationClient::Users::Order] @@ -648,7 +648,7 @@ def list_with_offset_step_pagination(page: nil, limit: nil, order: nil, request_ end # @param page [Integer] Defaults to first page - # @param limit [Integer] The maxiumum number of elements to return. + # @param limit [Integer] The maximum number of elements to return. # This is also used as the step size in this # paginated endpoint. # @param order [SeedPaginationClient::Users::Order] diff --git a/seed/ruby-sdk/path-parameters/.github/workflows/publish.yml b/seed/ruby-sdk/path-parameters/.github/workflows/publish.yml index 239f4201abc..6a6f7e1cc78 100644 --- a/seed/ruby-sdk/path-parameters/.github/workflows/publish.yml +++ b/seed/ruby-sdk/path-parameters/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/path-parameters/.rubocop.yml b/seed/ruby-sdk/path-parameters/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/path-parameters/.rubocop.yml +++ b/seed/ruby-sdk/path-parameters/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/plain-text/.github/workflows/publish.yml b/seed/ruby-sdk/plain-text/.github/workflows/publish.yml index ee2b37a2035..63d496f20ef 100644 --- a/seed/ruby-sdk/plain-text/.github/workflows/publish.yml +++ b/seed/ruby-sdk/plain-text/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/plain-text/.rubocop.yml b/seed/ruby-sdk/plain-text/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/plain-text/.rubocop.yml +++ b/seed/ruby-sdk/plain-text/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/query-parameters/.github/workflows/publish.yml b/seed/ruby-sdk/query-parameters/.github/workflows/publish.yml index f949faebadd..c5adfeb038d 100644 --- a/seed/ruby-sdk/query-parameters/.github/workflows/publish.yml +++ b/seed/ruby-sdk/query-parameters/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/query-parameters/.rubocop.yml b/seed/ruby-sdk/query-parameters/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/query-parameters/.rubocop.yml +++ b/seed/ruby-sdk/query-parameters/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/reserved-keywords/.github/workflows/publish.yml b/seed/ruby-sdk/reserved-keywords/.github/workflows/publish.yml index 9826f766329..7df7d273ed7 100644 --- a/seed/ruby-sdk/reserved-keywords/.github/workflows/publish.yml +++ b/seed/ruby-sdk/reserved-keywords/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/reserved-keywords/.rubocop.yml b/seed/ruby-sdk/reserved-keywords/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/reserved-keywords/.rubocop.yml +++ b/seed/ruby-sdk/reserved-keywords/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/response-property/.github/workflows/publish.yml b/seed/ruby-sdk/response-property/.github/workflows/publish.yml index 1adb7be980d..274cb215a80 100644 --- a/seed/ruby-sdk/response-property/.github/workflows/publish.yml +++ b/seed/ruby-sdk/response-property/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/response-property/.rubocop.yml b/seed/ruby-sdk/response-property/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/response-property/.rubocop.yml +++ b/seed/ruby-sdk/response-property/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/seed.yml b/seed/ruby-sdk/seed.yml index 604c225e7a5..ae2b9c68b78 100644 --- a/seed/ruby-sdk/seed.yml +++ b/seed/ruby-sdk/seed.yml @@ -67,7 +67,7 @@ features: websocket: false streamingJson: false fileUpload: true - fileDownlaod: true + fileDownload: true snippets: false snippetTests: false errors: false diff --git a/seed/ruby-sdk/server-sent-event-examples/.github/workflows/publish.yml b/seed/ruby-sdk/server-sent-event-examples/.github/workflows/publish.yml index fb6144c0136..04d62a09fce 100644 --- a/seed/ruby-sdk/server-sent-event-examples/.github/workflows/publish.yml +++ b/seed/ruby-sdk/server-sent-event-examples/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/server-sent-event-examples/.rubocop.yml b/seed/ruby-sdk/server-sent-event-examples/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/server-sent-event-examples/.rubocop.yml +++ b/seed/ruby-sdk/server-sent-event-examples/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/server-sent-events/.github/workflows/publish.yml b/seed/ruby-sdk/server-sent-events/.github/workflows/publish.yml index c1ea6408b77..ecfbfb2eb06 100644 --- a/seed/ruby-sdk/server-sent-events/.github/workflows/publish.yml +++ b/seed/ruby-sdk/server-sent-events/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/server-sent-events/.rubocop.yml b/seed/ruby-sdk/server-sent-events/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/server-sent-events/.rubocop.yml +++ b/seed/ruby-sdk/server-sent-events/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/simple-fhir/.github/workflows/publish.yml b/seed/ruby-sdk/simple-fhir/.github/workflows/publish.yml index e3db6beae8b..a3ff736166e 100644 --- a/seed/ruby-sdk/simple-fhir/.github/workflows/publish.yml +++ b/seed/ruby-sdk/simple-fhir/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/simple-fhir/.rubocop.yml b/seed/ruby-sdk/simple-fhir/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/simple-fhir/.rubocop.yml +++ b/seed/ruby-sdk/simple-fhir/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/single-url-environment-default/.github/workflows/publish.yml b/seed/ruby-sdk/single-url-environment-default/.github/workflows/publish.yml index ace3d45fefc..c8130e3b450 100644 --- a/seed/ruby-sdk/single-url-environment-default/.github/workflows/publish.yml +++ b/seed/ruby-sdk/single-url-environment-default/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/single-url-environment-default/.rubocop.yml b/seed/ruby-sdk/single-url-environment-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/single-url-environment-default/.rubocop.yml +++ b/seed/ruby-sdk/single-url-environment-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/single-url-environment-no-default/.github/workflows/publish.yml b/seed/ruby-sdk/single-url-environment-no-default/.github/workflows/publish.yml index cfb3dca7f2f..f49b001e778 100644 --- a/seed/ruby-sdk/single-url-environment-no-default/.github/workflows/publish.yml +++ b/seed/ruby-sdk/single-url-environment-no-default/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/single-url-environment-no-default/.rubocop.yml b/seed/ruby-sdk/single-url-environment-no-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/single-url-environment-no-default/.rubocop.yml +++ b/seed/ruby-sdk/single-url-environment-no-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/streaming-parameter/.github/workflows/publish.yml b/seed/ruby-sdk/streaming-parameter/.github/workflows/publish.yml index bd8b040cb67..2e9b318c315 100644 --- a/seed/ruby-sdk/streaming-parameter/.github/workflows/publish.yml +++ b/seed/ruby-sdk/streaming-parameter/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/streaming-parameter/.rubocop.yml b/seed/ruby-sdk/streaming-parameter/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/streaming-parameter/.rubocop.yml +++ b/seed/ruby-sdk/streaming-parameter/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/streaming/.github/workflows/publish.yml b/seed/ruby-sdk/streaming/.github/workflows/publish.yml index e32255147df..2705ef1cc5f 100644 --- a/seed/ruby-sdk/streaming/.github/workflows/publish.yml +++ b/seed/ruby-sdk/streaming/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/streaming/.rubocop.yml b/seed/ruby-sdk/streaming/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/streaming/.rubocop.yml +++ b/seed/ruby-sdk/streaming/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/trace/.github/workflows/publish.yml b/seed/ruby-sdk/trace/.github/workflows/publish.yml index cc3668351f3..f6091c8870f 100644 --- a/seed/ruby-sdk/trace/.github/workflows/publish.yml +++ b/seed/ruby-sdk/trace/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/trace/.mock/definition/submission.yml b/seed/ruby-sdk/trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ruby-sdk/trace/.mock/definition/submission.yml +++ b/seed/ruby-sdk/trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ruby-sdk/trace/.rubocop.yml b/seed/ruby-sdk/trace/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/trace/.rubocop.yml +++ b/seed/ruby-sdk/trace/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page.rb b/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page.rb index 409b8d3140e..ad3d2e64c73 100644 --- a/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page.rb +++ b/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page.rb @@ -7,7 +7,7 @@ module SeedTraceClient class Submission class TraceResponsesPage - # @return [Integer] If present, use this to load subseqent pages. + # @return [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. attr_reader :offset # @return [Array] @@ -20,7 +20,7 @@ class TraceResponsesPage OMIT = Object.new - # @param offset [Integer] If present, use this to load subseqent pages. + # @param offset [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. # @param trace_responses [Array] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition diff --git a/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page_v_2.rb b/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page_v_2.rb index 92d60613b69..f735bd80a8e 100644 --- a/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page_v_2.rb +++ b/seed/ruby-sdk/trace/lib/fern_trace/submission/types/trace_responses_page_v_2.rb @@ -7,7 +7,7 @@ module SeedTraceClient class Submission class TraceResponsesPageV2 - # @return [Integer] If present, use this to load subseqent pages. + # @return [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. attr_reader :offset # @return [Array] @@ -20,7 +20,7 @@ class TraceResponsesPageV2 OMIT = Object.new - # @param offset [Integer] If present, use this to load subseqent pages. + # @param offset [Integer] If present, use this to load subsequent pages. # The offset is the id of the next trace response to load. # @param trace_responses [Array] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition diff --git a/seed/ruby-sdk/undiscriminated-unions/.github/workflows/publish.yml b/seed/ruby-sdk/undiscriminated-unions/.github/workflows/publish.yml index fef7ff121fb..4beb15f5735 100644 --- a/seed/ruby-sdk/undiscriminated-unions/.github/workflows/publish.yml +++ b/seed/ruby-sdk/undiscriminated-unions/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/undiscriminated-unions/.rubocop.yml b/seed/ruby-sdk/undiscriminated-unions/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/undiscriminated-unions/.rubocop.yml +++ b/seed/ruby-sdk/undiscriminated-unions/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/unions/.github/workflows/publish.yml b/seed/ruby-sdk/unions/.github/workflows/publish.yml index a5bbd4785b1..c2f100ab309 100644 --- a/seed/ruby-sdk/unions/.github/workflows/publish.yml +++ b/seed/ruby-sdk/unions/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/unions/.mock/definition/types.yml b/seed/ruby-sdk/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/ruby-sdk/unions/.mock/definition/types.yml +++ b/seed/ruby-sdk/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/ruby-sdk/unions/.rubocop.yml b/seed/ruby-sdk/unions/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/unions/.rubocop.yml +++ b/seed/ruby-sdk/unions/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/unions/lib/fern_unions/types/types/union_with_optional_time.rb b/seed/ruby-sdk/unions/lib/fern_unions/types/types/union_with_optional_time.rb index 9c39b0ae3d1..b7f75872c1f 100644 --- a/seed/ruby-sdk/unions/lib/fern_unions/types/types/union_with_optional_time.rb +++ b/seed/ruby-sdk/unions/lib/fern_unions/types/types/union_with_optional_time.rb @@ -31,7 +31,7 @@ def self.from_json(json_object:) member = case struct.type when "date" Date.parse(json_object.value) unless json_object.value.nil? - when "dateimte" + when "datetime" DateTime.parse(json_object.value) unless json_object.value.nil? else Date.parse(json_object) unless json_object.nil? @@ -45,7 +45,7 @@ def self.from_json(json_object:) def to_json(*_args) case @discriminant when "date" - when "dateimte" + when "datetime" end { "type": @discriminant, "value": @member }.to_json @member.to_json @@ -61,7 +61,7 @@ def self.validate_raw(obj:) case obj.type when "date" obj.is_a?(Date) != false || raise("Passed value for field obj is not the expected type, validation failed.") - when "dateimte" + when "datetime" obj.is_a?(DateTime) != false || raise("Passed value for field obj is not the expected type, validation failed.") else raise("Passed value matched no type within the union, validation failed.") @@ -84,8 +84,8 @@ def self.date(member:) # @param member [DateTime] # @return [SeedUnionsClient::Types::UnionWithOptionalTime] - def self.dateimte(member:) - new(member: member, discriminant: "dateimte") + def self.datetime(member:) + new(member: member, discriminant: "datetime") end end end diff --git a/seed/ruby-sdk/unknown/.github/workflows/publish.yml b/seed/ruby-sdk/unknown/.github/workflows/publish.yml index 7dea30659db..d574556b7cd 100644 --- a/seed/ruby-sdk/unknown/.github/workflows/publish.yml +++ b/seed/ruby-sdk/unknown/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/unknown/.rubocop.yml b/seed/ruby-sdk/unknown/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/unknown/.rubocop.yml +++ b/seed/ruby-sdk/unknown/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/validation/.github/workflows/publish.yml b/seed/ruby-sdk/validation/.github/workflows/publish.yml index 01f300d51fb..1724b64131c 100644 --- a/seed/ruby-sdk/validation/.github/workflows/publish.yml +++ b/seed/ruby-sdk/validation/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/validation/.rubocop.yml b/seed/ruby-sdk/validation/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/validation/.rubocop.yml +++ b/seed/ruby-sdk/validation/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/variables/.github/workflows/publish.yml b/seed/ruby-sdk/variables/.github/workflows/publish.yml index 24a823bd083..8d7b362bc13 100644 --- a/seed/ruby-sdk/variables/.github/workflows/publish.yml +++ b/seed/ruby-sdk/variables/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/variables/.rubocop.yml b/seed/ruby-sdk/variables/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/variables/.rubocop.yml +++ b/seed/ruby-sdk/variables/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/version-no-default/.github/workflows/publish.yml b/seed/ruby-sdk/version-no-default/.github/workflows/publish.yml index 1cd5bb09330..b56fb203766 100644 --- a/seed/ruby-sdk/version-no-default/.github/workflows/publish.yml +++ b/seed/ruby-sdk/version-no-default/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/version-no-default/.rubocop.yml b/seed/ruby-sdk/version-no-default/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/version-no-default/.rubocop.yml +++ b/seed/ruby-sdk/version-no-default/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/version/.github/workflows/publish.yml b/seed/ruby-sdk/version/.github/workflows/publish.yml index 63fd5cb218d..c73a53f2c36 100644 --- a/seed/ruby-sdk/version/.github/workflows/publish.yml +++ b/seed/ruby-sdk/version/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/version/.rubocop.yml b/seed/ruby-sdk/version/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/version/.rubocop.yml +++ b/seed/ruby-sdk/version/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ruby-sdk/websocket/.github/workflows/publish.yml b/seed/ruby-sdk/websocket/.github/workflows/publish.yml index db337602c84..a542e314170 100644 --- a/seed/ruby-sdk/websocket/.github/workflows/publish.yml +++ b/seed/ruby-sdk/websocket/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Test gem run: bundle install && bundle exec rake test - + - name: Build and Push Gem env: GEM_HOST_API_KEY: ${{ secrets. }} diff --git a/seed/ruby-sdk/websocket/.rubocop.yml b/seed/ruby-sdk/websocket/.rubocop.yml index c1d2344d6e6..1e12390028f 100644 --- a/seed/ruby-sdk/websocket/.rubocop.yml +++ b/seed/ruby-sdk/websocket/.rubocop.yml @@ -1,10 +1,10 @@ AllCops: TargetRubyVersion: 2.7 - + Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes - + Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: double_quotes diff --git a/seed/ts-express/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml b/seed/ts-express/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-express/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml +++ b/seed/ts-express/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-express/exhaustive/allow-extra-fields/api/resources/endpoints/resources/params/service/ParamsService.ts b/seed/ts-express/exhaustive/allow-extra-fields/api/resources/endpoints/resources/params/service/ParamsService.ts index 17a67568f34..72df5bcba9d 100644 --- a/seed/ts-express/exhaustive/allow-extra-fields/api/resources/endpoints/resources/params/service/ParamsService.ts +++ b/seed/ts-express/exhaustive/allow-extra-fields/api/resources/endpoints/resources/params/service/ParamsService.ts @@ -63,7 +63,7 @@ export interface ParamsServiceMethods { never, { query: string; - numer: number; + number: number; } >, res: { diff --git a/seed/ts-express/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml b/seed/ts-express/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-express/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml +++ b/seed/ts-express/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-express/exhaustive/no-custom-config/api/resources/endpoints/resources/params/service/ParamsService.ts b/seed/ts-express/exhaustive/no-custom-config/api/resources/endpoints/resources/params/service/ParamsService.ts index 44628c50124..9bba2200812 100644 --- a/seed/ts-express/exhaustive/no-custom-config/api/resources/endpoints/resources/params/service/ParamsService.ts +++ b/seed/ts-express/exhaustive/no-custom-config/api/resources/endpoints/resources/params/service/ParamsService.ts @@ -63,7 +63,7 @@ export interface ParamsServiceMethods { never, { query: string; - numer: number; + number: number; } >, res: { diff --git a/seed/ts-express/exhaustive/no-optional-properties/.mock/definition/endpoints/params.yml b/seed/ts-express/exhaustive/no-optional-properties/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-express/exhaustive/no-optional-properties/.mock/definition/endpoints/params.yml +++ b/seed/ts-express/exhaustive/no-optional-properties/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-express/exhaustive/no-optional-properties/api/resources/endpoints/resources/params/service/ParamsService.ts b/seed/ts-express/exhaustive/no-optional-properties/api/resources/endpoints/resources/params/service/ParamsService.ts index 44628c50124..9bba2200812 100644 --- a/seed/ts-express/exhaustive/no-optional-properties/api/resources/endpoints/resources/params/service/ParamsService.ts +++ b/seed/ts-express/exhaustive/no-optional-properties/api/resources/endpoints/resources/params/service/ParamsService.ts @@ -63,7 +63,7 @@ export interface ParamsServiceMethods { never, { query: string; - numer: number; + number: number; } >, res: { diff --git a/seed/ts-express/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml b/seed/ts-express/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-express/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml +++ b/seed/ts-express/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-express/exhaustive/retain-original-casing/api/resources/endpoints/resources/params/service/ParamsService.ts b/seed/ts-express/exhaustive/retain-original-casing/api/resources/endpoints/resources/params/service/ParamsService.ts index 44628c50124..9bba2200812 100644 --- a/seed/ts-express/exhaustive/retain-original-casing/api/resources/endpoints/resources/params/service/ParamsService.ts +++ b/seed/ts-express/exhaustive/retain-original-casing/api/resources/endpoints/resources/params/service/ParamsService.ts @@ -63,7 +63,7 @@ export interface ParamsServiceMethods { never, { query: string; - numer: number; + number: number; } >, res: { diff --git a/seed/ts-express/exhaustive/union-utils/.mock/definition/endpoints/params.yml b/seed/ts-express/exhaustive/union-utils/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-express/exhaustive/union-utils/.mock/definition/endpoints/params.yml +++ b/seed/ts-express/exhaustive/union-utils/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-express/exhaustive/union-utils/api/resources/endpoints/resources/params/service/ParamsService.ts b/seed/ts-express/exhaustive/union-utils/api/resources/endpoints/resources/params/service/ParamsService.ts index 9fdd115dab0..c9c8e9ac693 100644 --- a/seed/ts-express/exhaustive/union-utils/api/resources/endpoints/resources/params/service/ParamsService.ts +++ b/seed/ts-express/exhaustive/union-utils/api/resources/endpoints/resources/params/service/ParamsService.ts @@ -63,7 +63,7 @@ export interface ParamsServiceMethods { never, { query: string; - numer: number; + number: number; } >, res: { diff --git a/seed/ts-express/multi-line-docs/.mock/definition/user.yml b/seed/ts-express/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/ts-express/multi-line-docs/.mock/definition/user.yml +++ b/seed/ts-express/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/ts-express/pagination/.mock/definition/users.yml b/seed/ts-express/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/ts-express/pagination/.mock/definition/users.yml +++ b/seed/ts-express/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/ts-express/trace/no-custom-config/.mock/definition/submission.yml b/seed/ts-express/trace/no-custom-config/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ts-express/trace/no-custom-config/.mock/definition/submission.yml +++ b/seed/ts-express/trace/no-custom-config/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPage.ts b/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPage.ts index 12058c800f1..69fe715d3c2 100644 --- a/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPage.ts +++ b/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPage.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPage { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPageV2.ts b/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPageV2.ts index 5a1e392d148..c4fcb823606 100644 --- a/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPageV2.ts +++ b/seed/ts-express/trace/no-custom-config/api/resources/submission/types/TraceResponsesPageV2.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPageV2 { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-express/trace/no-zurg-trace/.mock/definition/submission.yml b/seed/ts-express/trace/no-zurg-trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ts-express/trace/no-zurg-trace/.mock/definition/submission.yml +++ b/seed/ts-express/trace/no-zurg-trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPage.ts b/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPage.ts index 12058c800f1..69fe715d3c2 100644 --- a/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPage.ts +++ b/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPage.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPage { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPageV2.ts b/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPageV2.ts index 5a1e392d148..c4fcb823606 100644 --- a/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPageV2.ts +++ b/seed/ts-express/trace/no-zurg-trace/api/resources/submission/types/TraceResponsesPageV2.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPageV2 { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-express/unions/.mock/definition/types.yml b/seed/ts-express/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/ts-express/unions/.mock/definition/types.yml +++ b/seed/ts-express/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/ts-express/unions/api/resources/types/types/UnionWithOptionalTime.ts b/seed/ts-express/unions/api/resources/types/types/UnionWithOptionalTime.ts index 2bfb3525ca8..464fc8bf665 100644 --- a/seed/ts-express/unions/api/resources/types/types/UnionWithOptionalTime.ts +++ b/seed/ts-express/unions/api/resources/types/types/UnionWithOptionalTime.ts @@ -4,7 +4,7 @@ import * as SeedUnions from "../../../index"; -export type UnionWithOptionalTime = SeedUnions.UnionWithOptionalTime.Date_ | SeedUnions.UnionWithOptionalTime.Dateimte; +export type UnionWithOptionalTime = SeedUnions.UnionWithOptionalTime.Date_ | SeedUnions.UnionWithOptionalTime.Datetime; export namespace UnionWithOptionalTime { export interface Date_ { @@ -12,8 +12,8 @@ export namespace UnionWithOptionalTime { value?: string; } - export interface Dateimte { - type: "dateimte"; + export interface Datetime { + type: "datetime"; value?: Date; } } diff --git a/seed/ts-express/unions/serialization/resources/types/types/UnionWithOptionalTime.ts b/seed/ts-express/unions/serialization/resources/types/types/UnionWithOptionalTime.ts index 88e752eb8ca..c346afd154e 100644 --- a/seed/ts-express/unions/serialization/resources/types/types/UnionWithOptionalTime.ts +++ b/seed/ts-express/unions/serialization/resources/types/types/UnionWithOptionalTime.ts @@ -14,7 +14,7 @@ export const UnionWithOptionalTime: core.serialization.Schema< date: core.serialization.object({ value: core.serialization.string().optional(), }), - dateimte: core.serialization.object({ + datetime: core.serialization.object({ value: core.serialization.date().optional(), }), }) @@ -24,15 +24,15 @@ export const UnionWithOptionalTime: core.serialization.Schema< }); export declare namespace UnionWithOptionalTime { - export type Raw = UnionWithOptionalTime.Date | UnionWithOptionalTime.Dateimte; + export type Raw = UnionWithOptionalTime.Date | UnionWithOptionalTime.Datetime; export interface Date { type: "date"; value?: string | null; } - export interface Dateimte { - type: "dateimte"; + export interface Datetime { + type: "datetime"; value?: string | null; } } diff --git a/seed/ts-sdk/alias-extends/README.md b/seed/ts-sdk/alias-extends/README.md index a5eb631fd2f..bf781073406 100644 --- a/seed/ts-sdk/alias-extends/README.md +++ b/seed/ts-sdk/alias-extends/README.md @@ -77,10 +77,10 @@ const response = await client.extendedInlineRequestBody(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/alias-extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/alias-extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/alias-extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/alias-extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/alias-extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/alias/README.md b/seed/ts-sdk/alias/README.md index 1e9779d941a..e507f133292 100644 --- a/seed/ts-sdk/alias/README.md +++ b/seed/ts-sdk/alias/README.md @@ -62,10 +62,10 @@ const response = await client.get(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/alias/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/alias/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/alias/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/alias/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/alias/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/any-auth/README.md b/seed/ts-sdk/any-auth/README.md index 491519354bc..78ede97c1eb 100644 --- a/seed/ts-sdk/any-auth/README.md +++ b/seed/ts-sdk/any-auth/README.md @@ -85,10 +85,10 @@ const response = await client.auth.getToken(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/any-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/any-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/any-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/any-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/any-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/api-wide-base-path/README.md b/seed/ts-sdk/api-wide-base-path/README.md index be774dcd827..fd2e8302454 100644 --- a/seed/ts-sdk/api-wide-base-path/README.md +++ b/seed/ts-sdk/api-wide-base-path/README.md @@ -62,10 +62,10 @@ const response = await client.service.post(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/api-wide-base-path/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/audiences/no-custom-config/README.md b/seed/ts-sdk/audiences/no-custom-config/README.md index 7e5aef9c4eb..0789431a2fd 100644 --- a/seed/ts-sdk/audiences/no-custom-config/README.md +++ b/seed/ts-sdk/audiences/no-custom-config/README.md @@ -79,10 +79,10 @@ const response = await client.foo.find(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/audiences/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/audiences/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/audiences/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/audiences/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/audiences/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/audiences/with-partner-audience/README.md b/seed/ts-sdk/audiences/with-partner-audience/README.md index 57e3e4b033f..579f65d1797 100644 --- a/seed/ts-sdk/audiences/with-partner-audience/README.md +++ b/seed/ts-sdk/audiences/with-partner-audience/README.md @@ -62,10 +62,10 @@ const response = await client.folderD.service.getDirectThread(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/audiences/with-partner-audience/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/audiences/with-partner-audience/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/auth-environment-variables/README.md b/seed/ts-sdk/auth-environment-variables/README.md index 20454d2e424..ad5b944676e 100644 --- a/seed/ts-sdk/auth-environment-variables/README.md +++ b/seed/ts-sdk/auth-environment-variables/README.md @@ -79,10 +79,10 @@ const response = await client.service.getWithApiKey(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/basic-auth-environment-variables/README.md b/seed/ts-sdk/basic-auth-environment-variables/README.md index a6c2aa654f8..3d5b405d1e7 100644 --- a/seed/ts-sdk/basic-auth-environment-variables/README.md +++ b/seed/ts-sdk/basic-auth-environment-variables/README.md @@ -68,10 +68,10 @@ const response = await client.basicAuth.postWithBasicAuth(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/basic-auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/basic-auth-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/basic-auth/README.md b/seed/ts-sdk/basic-auth/README.md index df41a128dfd..1eea4c9d84c 100644 --- a/seed/ts-sdk/basic-auth/README.md +++ b/seed/ts-sdk/basic-auth/README.md @@ -68,10 +68,10 @@ const response = await client.basicAuth.postWithBasicAuth(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/basic-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/basic-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/basic-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/basic-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/basic-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/bearer-token-environment-variable/README.md b/seed/ts-sdk/bearer-token-environment-variable/README.md index b949777074e..d4b24d7b33a 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/README.md +++ b/seed/ts-sdk/bearer-token-environment-variable/README.md @@ -62,10 +62,10 @@ const response = await client.service.getWithBearerToken(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/bearer-token-environment-variable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/bytes/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/circular-references-advanced/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/circular-references-advanced/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/circular-references-advanced/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/circular-references-advanced/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/circular-references/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/circular-references/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/circular-references/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/circular-references/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/code-samples/README.md b/seed/ts-sdk/code-samples/README.md index 66d5f9a5fe0..38a70941cd4 100644 --- a/seed/ts-sdk/code-samples/README.md +++ b/seed/ts-sdk/code-samples/README.md @@ -61,10 +61,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index e307b1589a7..f1333e8ef32 100644 --- a/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 861142a08b0..546bda3f332 100644 --- a/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/code-samples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/code-samples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/code-samples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index da10086bc1d..3507321c2ea 100644 --- a/seed/ts-sdk/code-samples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/code-samples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/cross-package-type-names/README.md b/seed/ts-sdk/cross-package-type-names/README.md index 3a665ab5e26..f549e184030 100644 --- a/seed/ts-sdk/cross-package-type-names/README.md +++ b/seed/ts-sdk/cross-package-type-names/README.md @@ -79,10 +79,10 @@ const response = await client.foo.find(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/cross-package-type-names/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/cross-package-type-names/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/cross-package-type-names/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/cross-package-type-names/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/cross-package-type-names/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/custom-auth/README.md b/seed/ts-sdk/custom-auth/README.md index ab56a9ef62a..22becae1284 100644 --- a/seed/ts-sdk/custom-auth/README.md +++ b/seed/ts-sdk/custom-auth/README.md @@ -64,10 +64,10 @@ const response = await client.customAuth.postWithCustomAuth(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/custom-auth/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/custom-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/custom-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/custom-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/custom-auth/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/enum/README.md b/seed/ts-sdk/enum/README.md index b78223b5704..2967aac1a3a 100644 --- a/seed/ts-sdk/enum/README.md +++ b/seed/ts-sdk/enum/README.md @@ -78,10 +78,10 @@ const response = await client.inlinedRequest.send(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/enum/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/enum/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/enum/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/enum/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/enum/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/error-property/union-utils/README.md b/seed/ts-sdk/error-property/union-utils/README.md index fdc90adf8a0..b024f832882 100644 --- a/seed/ts-sdk/error-property/union-utils/README.md +++ b/seed/ts-sdk/error-property/union-utils/README.md @@ -62,10 +62,10 @@ const response = await client.propertyBasedError.throwError(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/error-property/union-utils/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/error-property/union-utils/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/error-property/union-utils/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/error-property/union-utils/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/error-property/union-utils/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/examples/examples-with-api-reference/README.md b/seed/ts-sdk/examples/examples-with-api-reference/README.md index 28ea6f0023f..b1d7d2f04b4 100644 --- a/seed/ts-sdk/examples/examples-with-api-reference/README.md +++ b/seed/ts-sdk/examples/examples-with-api-reference/README.md @@ -98,10 +98,10 @@ const response = await client.service.createMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/examples/examples-with-api-reference/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/examples/retain-original-casing/README.md b/seed/ts-sdk/examples/retain-original-casing/README.md index d57dbcab110..9c892a8d2ac 100644 --- a/seed/ts-sdk/examples/retain-original-casing/README.md +++ b/seed/ts-sdk/examples/retain-original-casing/README.md @@ -75,10 +75,10 @@ const response = await client.echo(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/examples/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/examples/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/examples/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/examples/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/examples/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/README.md b/seed/ts-sdk/exhaustive/allow-extra-fields/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/README.md +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/reference.md b/seed/ts-sdk/exhaustive/allow-extra-fields/reference.md index 2e6ad79087a..010048bcc30 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/reference.md +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/allow-extra-fields/resolved-snippet-templates.md index d2417bb6b51..2e76c32305b 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/snippet-templates.json b/seed/ts-sdk/exhaustive/allow-extra-fields/snippet-templates.json index 1dfdfba2c57..f52d8b82582 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/snippet.json b/seed/ts-sdk/exhaustive/allow-extra-fields/snippet.json index c07849f59a6..129c9516226 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/snippet.json +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/Client.ts index 03a2a603cda..da1225daa3d 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/Client.ts @@ -243,14 +243,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -258,10 +258,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/allow-extra-fields/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/README.md b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/README.md +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/reference.md b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/reference.md index 444cb72f3e5..92a7726cd44 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/reference.md +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/resolved-snippet-templates.md index 6b11f5ada01..ae713ca4bd5 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet-templates.json b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet-templates.json index a3ca2f0f8c2..bdfdbbe7ebd 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet.json b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet.json index 3a253490aff..e6bad49a106 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet.json +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts index 016098b2c34..0986892867b 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts @@ -232,14 +232,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -247,10 +247,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bigint-no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/bigint/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/bigint/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/bigint/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/bigint/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/bigint/README.md b/seed/ts-sdk/exhaustive/bigint/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/bigint/README.md +++ b/seed/ts-sdk/exhaustive/bigint/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/bigint/reference.md b/seed/ts-sdk/exhaustive/bigint/reference.md index ce7c420c2af..bbbbec8920b 100644 --- a/seed/ts-sdk/exhaustive/bigint/reference.md +++ b/seed/ts-sdk/exhaustive/bigint/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/bigint/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/bigint/resolved-snippet-templates.md index d2417bb6b51..2e76c32305b 100644 --- a/seed/ts-sdk/exhaustive/bigint/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/bigint/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/bigint/snippet-templates.json b/seed/ts-sdk/exhaustive/bigint/snippet-templates.json index 1dfdfba2c57..f52d8b82582 100644 --- a/seed/ts-sdk/exhaustive/bigint/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/bigint/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/bigint/snippet.json b/seed/ts-sdk/exhaustive/bigint/snippet.json index 0abc0fd83fd..11f36d9be1d 100644 --- a/seed/ts-sdk/exhaustive/bigint/snippet.json +++ b/seed/ts-sdk/exhaustive/bigint/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/Client.ts index d987412af52..c1986268dc1 100644 --- a/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/Client.ts @@ -243,14 +243,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -258,10 +258,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/bigint/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bigint/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/bigint/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/bigint/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/bigint/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/bigint/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/bundle/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/bundle/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/bundle/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/bundle/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/bundle/README.md b/seed/ts-sdk/exhaustive/bundle/README.md index 59d5e99c5dc..5c3ee900fe5 100644 --- a/seed/ts-sdk/exhaustive/bundle/README.md +++ b/seed/ts-sdk/exhaustive/bundle/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/bundle/reference.md b/seed/ts-sdk/exhaustive/bundle/reference.md index fcb75873941..633acb2d838 100644 --- a/seed/ts-sdk/exhaustive/bundle/reference.md +++ b/seed/ts-sdk/exhaustive/bundle/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/bundle/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/bundle/resolved-snippet-templates.md index 60d5eb67d12..932461905b3 100644 --- a/seed/ts-sdk/exhaustive/bundle/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/bundle/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new FiddleClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/bundle/snippet-templates.json b/seed/ts-sdk/exhaustive/bundle/snippet-templates.json index 965c1da127d..0e0cdb8d730 100644 --- a/seed/ts-sdk/exhaustive/bundle/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/bundle/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/bundle/snippet.json b/seed/ts-sdk/exhaustive/bundle/snippet.json index c2b9bad7d7d..2f725330226 100644 --- a/seed/ts-sdk/exhaustive/bundle/snippet.json +++ b/seed/ts-sdk/exhaustive/bundle/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { FiddleClient } from \"@fern/exhaustive\";\n\nconst client = new FiddleClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { FiddleClient } from \"@fern/exhaustive\";\n\nconst client = new FiddleClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts index 3f994a2dd0b..c6be1f392bf 100644 --- a/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts @@ -206,14 +206,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: Fiddle.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise> { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -221,10 +221,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/bundle/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/bundle/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/bundle/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/bundle/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/bundle/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/custom-package-json/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/custom-package-json/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/custom-package-json/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/custom-package-json/README.md b/seed/ts-sdk/exhaustive/custom-package-json/README.md index 59d5e99c5dc..5c3ee900fe5 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/README.md +++ b/seed/ts-sdk/exhaustive/custom-package-json/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/custom-package-json/reference.md b/seed/ts-sdk/exhaustive/custom-package-json/reference.md index fcb75873941..633acb2d838 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/reference.md +++ b/seed/ts-sdk/exhaustive/custom-package-json/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/custom-package-json/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/custom-package-json/resolved-snippet-templates.md index 60d5eb67d12..932461905b3 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/custom-package-json/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new FiddleClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/custom-package-json/snippet-templates.json b/seed/ts-sdk/exhaustive/custom-package-json/snippet-templates.json index 965c1da127d..0e0cdb8d730 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/custom-package-json/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/custom-package-json/snippet.json b/seed/ts-sdk/exhaustive/custom-package-json/snippet.json index c2b9bad7d7d..2f725330226 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/snippet.json +++ b/seed/ts-sdk/exhaustive/custom-package-json/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { FiddleClient } from \"@fern/exhaustive\";\n\nconst client = new FiddleClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { FiddleClient } from \"@fern/exhaustive\";\n\nconst client = new FiddleClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/Client.ts index 3f994a2dd0b..c6be1f392bf 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/Client.ts @@ -206,14 +206,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: Fiddle.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise> { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -221,10 +221,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/custom-package-json/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/custom-package-json/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/dev-dependencies/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/dev-dependencies/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/README.md b/seed/ts-sdk/exhaustive/dev-dependencies/README.md index 59d5e99c5dc..5c3ee900fe5 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/README.md +++ b/seed/ts-sdk/exhaustive/dev-dependencies/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/reference.md b/seed/ts-sdk/exhaustive/dev-dependencies/reference.md index fcb75873941..633acb2d838 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/reference.md +++ b/seed/ts-sdk/exhaustive/dev-dependencies/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/dev-dependencies/resolved-snippet-templates.md index 60d5eb67d12..932461905b3 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/dev-dependencies/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new FiddleClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/snippet-templates.json b/seed/ts-sdk/exhaustive/dev-dependencies/snippet-templates.json index 965c1da127d..0e0cdb8d730 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/dev-dependencies/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/snippet.json b/seed/ts-sdk/exhaustive/dev-dependencies/snippet.json index c2b9bad7d7d..2f725330226 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/snippet.json +++ b/seed/ts-sdk/exhaustive/dev-dependencies/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { FiddleClient } from \"@fern/exhaustive\";\n\nconst client = new FiddleClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { FiddleClient } from \"@fern/exhaustive\";\n\nconst client = new FiddleClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts index 3f994a2dd0b..c6be1f392bf 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts @@ -206,14 +206,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: Fiddle.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise> { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -221,10 +221,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/jsr/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/jsr/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/jsr/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/jsr/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/jsr/README.md b/seed/ts-sdk/exhaustive/jsr/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/jsr/README.md +++ b/seed/ts-sdk/exhaustive/jsr/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/jsr/reference.md b/seed/ts-sdk/exhaustive/jsr/reference.md index 2e6ad79087a..010048bcc30 100644 --- a/seed/ts-sdk/exhaustive/jsr/reference.md +++ b/seed/ts-sdk/exhaustive/jsr/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/jsr/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/jsr/resolved-snippet-templates.md index d2417bb6b51..2e76c32305b 100644 --- a/seed/ts-sdk/exhaustive/jsr/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/jsr/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/jsr/snippet-templates.json b/seed/ts-sdk/exhaustive/jsr/snippet-templates.json index 1dfdfba2c57..f52d8b82582 100644 --- a/seed/ts-sdk/exhaustive/jsr/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/jsr/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/jsr/snippet.json b/seed/ts-sdk/exhaustive/jsr/snippet.json index c07849f59a6..129c9516226 100644 --- a/seed/ts-sdk/exhaustive/jsr/snippet.json +++ b/seed/ts-sdk/exhaustive/jsr/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/Client.ts index d987412af52..c1986268dc1 100644 --- a/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/Client.ts @@ -243,14 +243,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -258,10 +258,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/jsr/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/jsr/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/jsr/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/jsr/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/jsr/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/jsr/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/no-custom-config/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/no-custom-config/README.md b/seed/ts-sdk/exhaustive/no-custom-config/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/README.md +++ b/seed/ts-sdk/exhaustive/no-custom-config/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/no-custom-config/reference.md b/seed/ts-sdk/exhaustive/no-custom-config/reference.md index 2e6ad79087a..010048bcc30 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/reference.md +++ b/seed/ts-sdk/exhaustive/no-custom-config/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md index d2417bb6b51..2e76c32305b 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/no-custom-config/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/no-custom-config/snippet-templates.json b/seed/ts-sdk/exhaustive/no-custom-config/snippet-templates.json index 1dfdfba2c57..f52d8b82582 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/no-custom-config/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/no-custom-config/snippet.json b/seed/ts-sdk/exhaustive/no-custom-config/snippet.json index c07849f59a6..129c9516226 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/snippet.json +++ b/seed/ts-sdk/exhaustive/no-custom-config/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts index d987412af52..c1986268dc1 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts @@ -243,14 +243,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -258,10 +258,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/no-serde-layer/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/no-serde-layer/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/README.md b/seed/ts-sdk/exhaustive/no-serde-layer/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/README.md +++ b/seed/ts-sdk/exhaustive/no-serde-layer/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/reference.md b/seed/ts-sdk/exhaustive/no-serde-layer/reference.md index 0426aafbfee..1ea48d37230 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/reference.md +++ b/seed/ts-sdk/exhaustive/no-serde-layer/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/no-serde-layer/resolved-snippet-templates.md index 6b11f5ada01..ae713ca4bd5 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/no-serde-layer/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/snippet-templates.json b/seed/ts-sdk/exhaustive/no-serde-layer/snippet-templates.json index a3ca2f0f8c2..bdfdbbe7ebd 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/no-serde-layer/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/snippet.json b/seed/ts-sdk/exhaustive/no-serde-layer/snippet.json index 2ff8ab441d1..beb58837ffc 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/snippet.json +++ b/seed/ts-sdk/exhaustive/no-serde-layer/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts index 016098b2c34..0986892867b 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/Client.ts @@ -232,14 +232,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -247,10 +247,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/no-serde-layer/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/retain-original-casing/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/README.md b/seed/ts-sdk/exhaustive/retain-original-casing/README.md index 385b6af7fd0..7ebfb01c739 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/README.md +++ b/seed/ts-sdk/exhaustive/retain-original-casing/README.md @@ -75,10 +75,10 @@ const response = await client.endpoints.container.getAndReturnListOfPrimitives(. ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/reference.md b/seed/ts-sdk/exhaustive/retain-original-casing/reference.md index fddd17f4712..2205d6f228c 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/reference.md +++ b/seed/ts-sdk/exhaustive/retain-original-casing/reference.md @@ -1450,7 +1450,7 @@ GET with multiple of same query param ```typescript await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/resolved-snippet-templates.md b/seed/ts-sdk/exhaustive/retain-original-casing/resolved-snippet-templates.md index 6b11f5ada01..ae713ca4bd5 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/resolved-snippet-templates.md +++ b/seed/ts-sdk/exhaustive/retain-original-casing/resolved-snippet-templates.md @@ -480,7 +480,7 @@ const client = new SeedExhaustiveClient({ }); await client.endpoints.params.getWithAllowMultipleQuery({ query: "query", - numer: 1, + number: 1, }); ``` diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/snippet-templates.json b/seed/ts-sdk/exhaustive/retain-original-casing/snippet-templates.json index a3ca2f0f8c2..bdfdbbe7ebd 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/snippet-templates.json +++ b/seed/ts-sdk/exhaustive/retain-original-casing/snippet-templates.json @@ -4672,12 +4672,12 @@ { "value": { "imports": [], - "templateString": "numer: $FERN_INPUT", + "templateString": "number: $FERN_INPUT", "isOptional": true, "templateInputs": [ { "location": "QUERY", - "path": "numer", + "path": "number", "type": "payload" } ], diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/snippet.json b/seed/ts-sdk/exhaustive/retain-original-casing/snippet.json index 2ff8ab441d1..beb58837ffc 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/snippet.json +++ b/seed/ts-sdk/exhaustive/retain-original-casing/snippet.json @@ -272,7 +272,7 @@ }, "snippet": { "type": "typescript", - "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n numer: 1\n});\n" + "client": "import { SeedExhaustiveClient } from \"@fern/exhaustive\";\n\nconst client = new SeedExhaustiveClient({ environment: \"YOUR_BASE_URL\", token: \"YOUR_TOKEN\" });\nawait client.endpoints.params.getWithAllowMultipleQuery({\n query: \"query\",\n number: 1\n});\n" } }, { diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/Client.ts index d987412af52..c1986268dc1 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/Client.ts @@ -243,14 +243,14 @@ export class Params { * @example * await client.endpoints.params.getWithAllowMultipleQuery({ * query: "query", - * numer: 1 + * number: 1 * }) */ public async getWithAllowMultipleQuery( request: SeedExhaustive.endpoints.GetWithMultipleQuery, requestOptions?: Params.RequestOptions, ): Promise { - const { query, numer } = request; + const { query, number: number_ } = request; const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); @@ -258,10 +258,10 @@ export class Params { _queryParams["query"] = query; } - if (Array.isArray(numer)) { - _queryParams["numer"] = numer.map((item) => item.toString()); + if (Array.isArray(number_)) { + _queryParams["number"] = number_.map((item) => item.toString()); } else { - _queryParams["numer"] = numer.toString(); + _queryParams["number"] = number_.toString(); } const _response = await core.fetcher({ diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts b/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts index b0eb4c9c4a5..3bf2261a5cc 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts +++ b/seed/ts-sdk/exhaustive/retain-original-casing/src/api/resources/endpoints/resources/params/client/requests/GetWithMultipleQuery.ts @@ -6,10 +6,10 @@ * @example * { * query: "query", - * numer: 1 + * number: 1 * } */ export interface GetWithMultipleQuery { query: string | string[]; - numer: number | number[]; + number: number | number[]; } diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/exhaustive/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/exhaustive/with-audiences/.mock/definition/endpoints/params.yml b/seed/ts-sdk/exhaustive/with-audiences/.mock/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/seed/ts-sdk/exhaustive/with-audiences/.mock/definition/endpoints/params.yml +++ b/seed/ts-sdk/exhaustive/with-audiences/.mock/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/seed/ts-sdk/extends/README.md b/seed/ts-sdk/extends/README.md index 28303e3a284..0463c3547cd 100644 --- a/seed/ts-sdk/extends/README.md +++ b/seed/ts-sdk/extends/README.md @@ -77,10 +77,10 @@ const response = await client.extendedInlineRequestBody(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/extends/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/extends/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/extra-properties/README.md b/seed/ts-sdk/extra-properties/README.md index f12fcd5f283..832fc8fc0f6 100644 --- a/seed/ts-sdk/extra-properties/README.md +++ b/seed/ts-sdk/extra-properties/README.md @@ -77,10 +77,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/extra-properties/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/extra-properties/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/extra-properties/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/extra-properties/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/extra-properties/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/failing-audiences/README.md b/seed/ts-sdk/failing-audiences/README.md index 8468acf50a0..e97099b9559 100644 --- a/seed/ts-sdk/failing-audiences/README.md +++ b/seed/ts-sdk/failing-audiences/README.md @@ -63,10 +63,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/failing-audiences/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/failing-audiences/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/failing-audiences/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index da10086bc1d..3507321c2ea 100644 --- a/seed/ts-sdk/failing-audiences/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/failing-audiences/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.github/workflows/ci.yml b/seed/ts-sdk/file-download/file-download-response-headers/.github/workflows/ci.yml similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.github/workflows/ci.yml rename to seed/ts-sdk/file-download/file-download-response-headers/.github/workflows/ci.yml diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.gitignore b/seed/ts-sdk/file-download/file-download-response-headers/.gitignore similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.gitignore rename to seed/ts-sdk/file-download/file-download-response-headers/.gitignore diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.mock/definition/api.yml b/seed/ts-sdk/file-download/file-download-response-headers/.mock/definition/api.yml similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.mock/definition/api.yml rename to seed/ts-sdk/file-download/file-download-response-headers/.mock/definition/api.yml diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.mock/definition/service.yml b/seed/ts-sdk/file-download/file-download-response-headers/.mock/definition/service.yml similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.mock/definition/service.yml rename to seed/ts-sdk/file-download/file-download-response-headers/.mock/definition/service.yml diff --git a/seed/ts-sdk/file-download/file-download-response-headers/.mock/fern.config.json b/seed/ts-sdk/file-download/file-download-response-headers/.mock/fern.config.json new file mode 100644 index 00000000000..4c8e54ac313 --- /dev/null +++ b/seed/ts-sdk/file-download/file-download-response-headers/.mock/fern.config.json @@ -0,0 +1 @@ +{"organization": "fern-test", "version": "*"} \ No newline at end of file diff --git a/seed/ts-sdk/file-download/file-download-response-headers/.mock/generators.yml b/seed/ts-sdk/file-download/file-download-response-headers/.mock/generators.yml new file mode 100644 index 00000000000..0967ef424bc --- /dev/null +++ b/seed/ts-sdk/file-download/file-download-response-headers/.mock/generators.yml @@ -0,0 +1 @@ +{} diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.npmignore b/seed/ts-sdk/file-download/file-download-response-headers/.npmignore similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.npmignore rename to seed/ts-sdk/file-download/file-download-response-headers/.npmignore diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/.prettierrc.yml b/seed/ts-sdk/file-download/file-download-response-headers/.prettierrc.yml similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/.prettierrc.yml rename to seed/ts-sdk/file-download/file-download-response-headers/.prettierrc.yml diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/jest.config.mjs b/seed/ts-sdk/file-download/file-download-response-headers/jest.config.mjs similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/jest.config.mjs rename to seed/ts-sdk/file-download/file-download-response-headers/jest.config.mjs diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/package.json b/seed/ts-sdk/file-download/file-download-response-headers/package.json similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/package.json rename to seed/ts-sdk/file-download/file-download-response-headers/package.json diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/reference.md b/seed/ts-sdk/file-download/file-download-response-headers/reference.md similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/reference.md rename to seed/ts-sdk/file-download/file-download-response-headers/reference.md diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/scripts/rename-to-esm-files.js b/seed/ts-sdk/file-download/file-download-response-headers/scripts/rename-to-esm-files.js similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/scripts/rename-to-esm-files.js rename to seed/ts-sdk/file-download/file-download-response-headers/scripts/rename-to-esm-files.js diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/snippet-templates.json b/seed/ts-sdk/file-download/file-download-response-headers/snippet-templates.json similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/snippet-templates.json rename to seed/ts-sdk/file-download/file-download-response-headers/snippet-templates.json diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/snippet.json b/seed/ts-sdk/file-download/file-download-response-headers/snippet.json similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/snippet.json rename to seed/ts-sdk/file-download/file-download-response-headers/snippet.json diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/Client.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/Client.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/Client.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/Client.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/api/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/api/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/api/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/api/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/service/client/Client.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/service/client/Client.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/service/client/Client.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/service/client/Client.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/service/client/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/service/client/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/service/client/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/service/client/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/service/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/service/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/api/resources/service/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/api/resources/service/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/APIResponse.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/APIResponse.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/APIResponse.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/APIResponse.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/Fetcher.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Fetcher.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/Fetcher.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Supplier.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/Supplier.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Supplier.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/Supplier.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/createRequestUrl.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/createRequestUrl.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/createRequestUrl.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/createRequestUrl.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getFetchFn.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getFetchFn.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getFetchFn.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getFetchFn.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getHeader.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getHeader.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getHeader.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getHeader.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getRequestBody.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getRequestBody.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getRequestBody.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getRequestBody.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getResponseBody.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getResponseBody.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/getResponseBody.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/getResponseBody.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/makeRequest.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/makeRequest.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/makeRequest.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/makeRequest.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/requestWithRetries.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/requestWithRetries.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/requestWithRetries.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/requestWithRetries.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/signals.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/signals.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/signals.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/signals.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/NodePre18StreamWrapper.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/NodePre18StreamWrapper.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/NodePre18StreamWrapper.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/NodePre18StreamWrapper.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/UndiciStreamWrapper.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/UndiciStreamWrapper.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/UndiciStreamWrapper.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/UndiciStreamWrapper.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/chooseStreamWrapper.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/chooseStreamWrapper.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/stream-wrappers/chooseStreamWrapper.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/fetcher/stream-wrappers/chooseStreamWrapper.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/json.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/json.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/json.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/json.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/runtime/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/runtime/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/runtime/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/runtime/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/runtime/runtime.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/core/runtime/runtime.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/core/runtime/runtime.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/core/runtime/runtime.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/errors/SeedFileDownloadError.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/errors/SeedFileDownloadError.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/errors/SeedFileDownloadError.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/errors/SeedFileDownloadError.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/errors/SeedFileDownloadTimeoutError.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/errors/SeedFileDownloadTimeoutError.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/errors/SeedFileDownloadTimeoutError.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/errors/SeedFileDownloadTimeoutError.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/errors/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/errors/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/errors/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/errors/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/index.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/index.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/index.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/index.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/version.ts b/seed/ts-sdk/file-download/file-download-response-headers/src/version.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/src/version.ts rename to seed/ts-sdk/file-download/file-download-response-headers/src/version.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/custom.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/custom.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/custom.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/custom.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/Fetcher.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/Fetcher.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/Fetcher.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/Fetcher.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/createRequestUrl.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/createRequestUrl.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/createRequestUrl.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/createRequestUrl.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/getFetchFn.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/getFetchFn.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/getFetchFn.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/getFetchFn.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/getRequestBody.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/getRequestBody.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/getRequestBody.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/getRequestBody.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/getResponseBody.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/getResponseBody.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/getResponseBody.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/getResponseBody.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/makeRequest.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/makeRequest.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/makeRequest.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/makeRequest.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/requestWithRetries.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/requestWithRetries.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/requestWithRetries.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/requestWithRetries.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/signals.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/signals.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/signals.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/signals.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts similarity index 98% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts similarity index 98% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts similarity index 98% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/chooseStreamWrapper.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/chooseStreamWrapper.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/chooseStreamWrapper.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/chooseStreamWrapper.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/webpack.test.ts b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/webpack.test.ts similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/stream-wrappers/webpack.test.ts rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/stream-wrappers/webpack.test.ts diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/test-file.txt b/seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/test-file.txt similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tests/unit/fetcher/test-file.txt rename to seed/ts-sdk/file-download/file-download-response-headers/tests/unit/fetcher/test-file.txt diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/tsconfig.json b/seed/ts-sdk/file-download/file-download-response-headers/tsconfig.json similarity index 100% rename from seed/ts-sdk/file-download/file-download-reponse-headers/tsconfig.json rename to seed/ts-sdk/file-download/file-download-response-headers/tsconfig.json diff --git a/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/file-download/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-upload/inline/.mock/definition/service.yml b/seed/ts-sdk/file-upload/inline/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/ts-sdk/file-upload/inline/.mock/definition/service.yml +++ b/seed/ts-sdk/file-upload/inline/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/ts-sdk/file-upload/inline/.mock/ir.json b/seed/ts-sdk/file-upload/inline/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/ts-sdk/file-upload/inline/.mock/ir.json +++ b/seed/ts-sdk/file-upload/inline/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/Client.ts b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/Client.ts index d4746230cc2..3ee8760b954 100644 --- a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/Client.ts +++ b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/Client.ts @@ -145,11 +145,11 @@ export class Service { } /** - * @param {SeedFileUpload.JustFileRequet} request + * @param {SeedFileUpload.JustFileRequest} request * @param {Service.RequestOptions} requestOptions - Request-specific configuration. */ public async justFile( - request: SeedFileUpload.JustFileRequet, + request: SeedFileUpload.JustFileRequest, requestOptions?: Service.RequestOptions, ): Promise { const _request = await core.newFormData(); @@ -206,11 +206,11 @@ export class Service { } /** - * @param {SeedFileUpload.JustFileWithQueryParamsRequet} request + * @param {SeedFileUpload.JustFileWithQueryParamsRequest} request * @param {Service.RequestOptions} requestOptions - Request-specific configuration. */ public async justFileWithQueryParams( - request: SeedFileUpload.JustFileWithQueryParamsRequet, + request: SeedFileUpload.JustFileWithQueryParamsRequest, requestOptions?: Service.RequestOptions, ): Promise { const _queryParams: Record = {}; diff --git a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileRequet.ts b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileRequest.ts similarity index 80% rename from seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileRequet.ts rename to seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileRequest.ts index de9352883b2..f64121c0a1c 100644 --- a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileRequet.ts +++ b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileRequest.ts @@ -4,6 +4,6 @@ import * as fs from "fs"; -export interface JustFileRequet { +export interface JustFileRequest { file: File | fs.ReadStream | Blob; } diff --git a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts similarity index 85% rename from seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts rename to seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts index bd76ac259fc..43d0cb48b1a 100644 --- a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts +++ b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts @@ -4,7 +4,7 @@ import * as fs from "fs"; -export interface JustFileWithQueryParamsRequet { +export interface JustFileWithQueryParamsRequest { maybeString?: string; integer: number; maybeInteger?: number; diff --git a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/index.ts b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/index.ts index f7394273ab4..c41ce80439e 100644 --- a/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/index.ts +++ b/seed/ts-sdk/file-upload/inline/src/api/resources/service/client/requests/index.ts @@ -1,4 +1,4 @@ export { type MyRequest } from "./MyRequest"; -export { type JustFileRequet } from "./JustFileRequet"; -export { type JustFileWithQueryParamsRequet } from "./JustFileWithQueryParamsRequet"; +export { type JustFileRequest } from "./JustFileRequest"; +export { type JustFileWithQueryParamsRequest } from "./JustFileWithQueryParamsRequest"; export { type WithContentTypeRequest } from "./WithContentTypeRequest"; diff --git a/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-upload/inline/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/file-upload/inline/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/file-upload/inline/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/file-upload/inline/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/file-upload/no-custom-config/.mock/definition/service.yml b/seed/ts-sdk/file-upload/no-custom-config/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/.mock/definition/service.yml +++ b/seed/ts-sdk/file-upload/no-custom-config/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/ts-sdk/file-upload/no-custom-config/.mock/ir.json b/seed/ts-sdk/file-upload/no-custom-config/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/.mock/ir.json +++ b/seed/ts-sdk/file-upload/no-custom-config/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/Client.ts b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/Client.ts index 427a1bbef81..a646fbbb42d 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/Client.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/Client.ts @@ -217,12 +217,12 @@ export class Service { /** * @param {File | fs.ReadStream | Blob} file - * @param {SeedFileUpload.JustFileWithQueryParamsRequet} request + * @param {SeedFileUpload.JustFileWithQueryParamsRequest} request * @param {Service.RequestOptions} requestOptions - Request-specific configuration. */ public async justFileWithQueryParams( file: File | fs.ReadStream | Blob, - request: SeedFileUpload.JustFileWithQueryParamsRequet, + request: SeedFileUpload.JustFileWithQueryParamsRequest, requestOptions?: Service.RequestOptions, ): Promise { const _queryParams: Record = {}; diff --git a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileRequet.ts b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileRequest.ts similarity index 67% rename from seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileRequet.ts rename to seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileRequest.ts index cfaa567d189..63980200924 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileRequet.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileRequest.ts @@ -2,4 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface JustFileRequet {} +export interface JustFileRequest {} diff --git a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts similarity index 82% rename from seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts rename to seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts index 579247b70d0..fd43cb186ad 100644 --- a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface JustFileWithQueryParamsRequet { +export interface JustFileWithQueryParamsRequest { maybeString?: string; integer: number; maybeInteger?: number; diff --git a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/index.ts b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/index.ts index f7394273ab4..c41ce80439e 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/index.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/index.ts @@ -1,4 +1,4 @@ export { type MyRequest } from "./MyRequest"; -export { type JustFileRequet } from "./JustFileRequet"; -export { type JustFileWithQueryParamsRequet } from "./JustFileWithQueryParamsRequet"; +export { type JustFileRequest } from "./JustFileRequest"; +export { type JustFileWithQueryParamsRequest } from "./JustFileWithQueryParamsRequest"; export { type WithContentTypeRequest } from "./WithContentTypeRequest"; diff --git a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/file-upload/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/file-upload/no-serde/.mock/definition/service.yml b/seed/ts-sdk/file-upload/no-serde/.mock/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/seed/ts-sdk/file-upload/no-serde/.mock/definition/service.yml +++ b/seed/ts-sdk/file-upload/no-serde/.mock/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/seed/ts-sdk/file-upload/no-serde/.mock/ir.json b/seed/ts-sdk/file-upload/no-serde/.mock/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/seed/ts-sdk/file-upload/no-serde/.mock/ir.json +++ b/seed/ts-sdk/file-upload/no-serde/.mock/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/Client.ts b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/Client.ts index 2a416e82699..c9ea0f007b7 100644 --- a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/Client.ts +++ b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/Client.ts @@ -207,12 +207,12 @@ export class Service { /** * @param {File | fs.ReadStream | Blob} file - * @param {SeedFileUpload.JustFileWithQueryParamsRequet} request + * @param {SeedFileUpload.JustFileWithQueryParamsRequest} request * @param {Service.RequestOptions} requestOptions - Request-specific configuration. */ public async justFileWithQueryParams( file: File | fs.ReadStream | Blob, - request: SeedFileUpload.JustFileWithQueryParamsRequet, + request: SeedFileUpload.JustFileWithQueryParamsRequest, requestOptions?: Service.RequestOptions, ): Promise { const _queryParams: Record = {}; diff --git a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileRequet.ts b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileRequest.ts similarity index 67% rename from seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileRequet.ts rename to seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileRequest.ts index cfaa567d189..63980200924 100644 --- a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileRequet.ts +++ b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileRequest.ts @@ -2,4 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface JustFileRequet {} +export interface JustFileRequest {} diff --git a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts similarity index 82% rename from seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts rename to seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts index 579247b70d0..fd43cb186ad 100644 --- a/seed/ts-sdk/file-upload/no-custom-config/src/api/resources/service/client/requests/JustFileWithQueryParamsRequet.ts +++ b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/JustFileWithQueryParamsRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface JustFileWithQueryParamsRequet { +export interface JustFileWithQueryParamsRequest { maybeString?: string; integer: number; maybeInteger?: number; diff --git a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/index.ts b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/index.ts index f7394273ab4..c41ce80439e 100644 --- a/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/index.ts +++ b/seed/ts-sdk/file-upload/no-serde/src/api/resources/service/client/requests/index.ts @@ -1,4 +1,4 @@ export { type MyRequest } from "./MyRequest"; -export { type JustFileRequet } from "./JustFileRequet"; -export { type JustFileWithQueryParamsRequet } from "./JustFileWithQueryParamsRequet"; +export { type JustFileRequest } from "./JustFileRequest"; +export { type JustFileWithQueryParamsRequest } from "./JustFileWithQueryParamsRequest"; export { type WithContentTypeRequest } from "./WithContentTypeRequest"; diff --git a/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/file-upload/no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/folders/README.md b/seed/ts-sdk/folders/README.md index 479b4fbb29a..24709fb781c 100644 --- a/seed/ts-sdk/folders/README.md +++ b/seed/ts-sdk/folders/README.md @@ -62,10 +62,10 @@ const response = await client.foo(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/folders/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/folders/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/folders/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/folders/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/folders/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/grpc-proto-exhaustive/README.md b/seed/ts-sdk/grpc-proto-exhaustive/README.md index 0e4820f071b..f549ebe66a5 100644 --- a/seed/ts-sdk/grpc-proto-exhaustive/README.md +++ b/seed/ts-sdk/grpc-proto-exhaustive/README.md @@ -82,10 +82,10 @@ const response = await client.dataservice.upload(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/grpc-proto-exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/grpc-proto/README.md b/seed/ts-sdk/grpc-proto/README.md index eb228a0f9f0..3e62f04162e 100644 --- a/seed/ts-sdk/grpc-proto/README.md +++ b/seed/ts-sdk/grpc-proto/README.md @@ -75,10 +75,10 @@ const response = await client.userservice.create(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/grpc-proto/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/grpc-proto/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/grpc-proto/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/grpc-proto/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/grpc-proto/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/grpc/README.md b/seed/ts-sdk/grpc/README.md index 6490bc695c0..b4bd8a7f93c 100644 --- a/seed/ts-sdk/grpc/README.md +++ b/seed/ts-sdk/grpc/README.md @@ -64,10 +64,10 @@ try { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/grpc/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/grpc/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/grpc/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index da10086bc1d..3507321c2ea 100644 --- a/seed/ts-sdk/grpc/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/grpc/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/idempotency-headers/README.md b/seed/ts-sdk/idempotency-headers/README.md index 20790653caf..5686900a9e6 100644 --- a/seed/ts-sdk/idempotency-headers/README.md +++ b/seed/ts-sdk/idempotency-headers/README.md @@ -78,10 +78,10 @@ const response = await client.payment.create(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/idempotency-headers/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/idempotency-headers/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/idempotency-headers/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/idempotency-headers/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/idempotency-headers/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/imdb/branded-string-aliases/README.md b/seed/ts-sdk/imdb/branded-string-aliases/README.md index 413738d12e9..02a04ba213d 100644 --- a/seed/ts-sdk/imdb/branded-string-aliases/README.md +++ b/seed/ts-sdk/imdb/branded-string-aliases/README.md @@ -65,10 +65,10 @@ const response = await client.imdb.createMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/imdb/branded-string-aliases/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/imdb/no-custom-config/README.md b/seed/ts-sdk/imdb/no-custom-config/README.md index 413738d12e9..02a04ba213d 100644 --- a/seed/ts-sdk/imdb/no-custom-config/README.md +++ b/seed/ts-sdk/imdb/no-custom-config/README.md @@ -65,10 +65,10 @@ const response = await client.imdb.createMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/imdb/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/imdb/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/imdb/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/imdb/noScripts/README.md b/seed/ts-sdk/imdb/noScripts/README.md index 5b9d18e7436..ad9e0a57bab 100644 --- a/seed/ts-sdk/imdb/noScripts/README.md +++ b/seed/ts-sdk/imdb/noScripts/README.md @@ -52,7 +52,7 @@ try { ### Additional Headers -If you would like to send additional headers as part of the request, use the `headers` request option. +If you would like to send additional headers as part of the request, use the `headers` request option. ```typescript const response = await client.imdb.createMovie(..., { @@ -65,10 +65,10 @@ const response = await client.imdb.createMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/imdb/noScripts/package.json b/seed/ts-sdk/imdb/noScripts/package.json index a54394412f7..348fc0b1832 100644 --- a/seed/ts-sdk/imdb/noScripts/package.json +++ b/seed/ts-sdk/imdb/noScripts/package.json @@ -19,7 +19,7 @@ "qs": "^6.13.1", "readable-stream": "^4.5.2", "js-base64": "3.7.7", - "dummmy": "dummy" + "dummy": "dummy" }, "devDependencies": { "@types/url-join": "4.0.1", diff --git a/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index f81998781ad..187dab7faa6 100644 --- a/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 18349f8764d..f04d4d01b00 100644 --- a/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 20c47ae389d..1506019e62a 100644 --- a/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/noScripts/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/noScripts/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/imdb/noScripts/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 8d22b225c34..e88f24b2010 100644 --- a/seed/ts-sdk/imdb/noScripts/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/imdb/noScripts/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1) diff --git a/seed/ts-sdk/imdb/omit-undefined/README.md b/seed/ts-sdk/imdb/omit-undefined/README.md index 413738d12e9..02a04ba213d 100644 --- a/seed/ts-sdk/imdb/omit-undefined/README.md +++ b/seed/ts-sdk/imdb/omit-undefined/README.md @@ -65,10 +65,10 @@ const response = await client.imdb.createMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/imdb/omit-undefined/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/imdb/omit-undefined/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/imdb/omit-undefined/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/imdb/omit-undefined/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/imdb/omit-undefined/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/inline-types/README.md b/seed/ts-sdk/inline-types/README.md index 3a27a521141..e5c79dec6e4 100644 --- a/seed/ts-sdk/inline-types/README.md +++ b/seed/ts-sdk/inline-types/README.md @@ -80,10 +80,10 @@ const response = await client.getRoot(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/inline-types/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/inline-types/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/inline-types/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index da10086bc1d..3507321c2ea 100644 --- a/seed/ts-sdk/inline-types/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/inline-types/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/license/README.md b/seed/ts-sdk/license/README.md index a7b71022f02..f85ef659db3 100644 --- a/seed/ts-sdk/license/README.md +++ b/seed/ts-sdk/license/README.md @@ -62,10 +62,10 @@ const response = await client.get(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/license/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/license/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/license/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/license/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/license/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/literal/README.md b/seed/ts-sdk/literal/README.md index 3467af5540a..f6754d3e7e1 100644 --- a/seed/ts-sdk/literal/README.md +++ b/seed/ts-sdk/literal/README.md @@ -77,10 +77,10 @@ const response = await client.headers.send(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/literal/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/literal/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/literal/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/literal/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/literal/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/mixed-case/no-custom-config/README.md b/seed/ts-sdk/mixed-case/no-custom-config/README.md index 39c84c305e6..f8a604d9b30 100644 --- a/seed/ts-sdk/mixed-case/no-custom-config/README.md +++ b/seed/ts-sdk/mixed-case/no-custom-config/README.md @@ -75,10 +75,10 @@ const response = await client.service.getResource(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/mixed-case/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/mixed-case/retain-original-casing/README.md b/seed/ts-sdk/mixed-case/retain-original-casing/README.md index 39c84c305e6..f8a604d9b30 100644 --- a/seed/ts-sdk/mixed-case/retain-original-casing/README.md +++ b/seed/ts-sdk/mixed-case/retain-original-casing/README.md @@ -75,10 +75,10 @@ const response = await client.service.getResource(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/mixed-case/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/mixed-file-directory/README.md b/seed/ts-sdk/mixed-file-directory/README.md index 2a8be701d35..3191f0fd2bd 100644 --- a/seed/ts-sdk/mixed-file-directory/README.md +++ b/seed/ts-sdk/mixed-file-directory/README.md @@ -77,10 +77,10 @@ const response = await client.organization.create(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/mixed-file-directory/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/mixed-file-directory/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/mixed-file-directory/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/mixed-file-directory/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/mixed-file-directory/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/multi-line-docs/.mock/definition/user.yml b/seed/ts-sdk/multi-line-docs/.mock/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/seed/ts-sdk/multi-line-docs/.mock/definition/user.yml +++ b/seed/ts-sdk/multi-line-docs/.mock/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/seed/ts-sdk/multi-line-docs/README.md b/seed/ts-sdk/multi-line-docs/README.md index 675f2cb662c..403c08ac95c 100644 --- a/seed/ts-sdk/multi-line-docs/README.md +++ b/seed/ts-sdk/multi-line-docs/README.md @@ -78,10 +78,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/multi-line-docs/src/api/resources/user/client/requests/CreateUserRequest.ts b/seed/ts-sdk/multi-line-docs/src/api/resources/user/client/requests/CreateUserRequest.ts index 78ac6c2a056..4ac383eedbb 100644 --- a/seed/ts-sdk/multi-line-docs/src/api/resources/user/client/requests/CreateUserRequest.ts +++ b/seed/ts-sdk/multi-line-docs/src/api/resources/user/client/requests/CreateUserRequest.ts @@ -18,7 +18,7 @@ export interface CreateUserRequest { name: string; /** * The age of the user. - * This propery is not required. + * This property is not required. * */ age?: number; diff --git a/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/multi-line-docs/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/multi-line-docs/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/multi-line-docs/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/multi-line-docs/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/multi-line-docs/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/multi-url-environment-no-default/README.md b/seed/ts-sdk/multi-url-environment-no-default/README.md index 7218e77db64..6a99a7b1e7f 100644 --- a/seed/ts-sdk/multi-url-environment-no-default/README.md +++ b/seed/ts-sdk/multi-url-environment-no-default/README.md @@ -83,10 +83,10 @@ const response = await client.ec2.bootInstance(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/multi-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/multi-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/multi-url-environment/README.md b/seed/ts-sdk/multi-url-environment/README.md index a67620dd029..dd670e7507a 100644 --- a/seed/ts-sdk/multi-url-environment/README.md +++ b/seed/ts-sdk/multi-url-environment/README.md @@ -77,10 +77,10 @@ const response = await client.ec2.bootInstance(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/multi-url-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/multi-url-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/multi-url-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/multi-url-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/multi-url-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/no-environment/README.md b/seed/ts-sdk/no-environment/README.md index 68c623d3250..5bfde97d61d 100644 --- a/seed/ts-sdk/no-environment/README.md +++ b/seed/ts-sdk/no-environment/README.md @@ -62,10 +62,10 @@ const response = await client.dummy.getDummy(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/no-environment/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/no-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/no-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/no-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/no-environment/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/nullable/README.md b/seed/ts-sdk/nullable/README.md index 6a2080ac769..735c9caad70 100644 --- a/seed/ts-sdk/nullable/README.md +++ b/seed/ts-sdk/nullable/README.md @@ -85,10 +85,10 @@ const response = await client.nullable.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/nullable/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/nullable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/nullable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/nullable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/nullable/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/oauth-client-credentials-custom/README.md b/seed/ts-sdk/oauth-client-credentials-custom/README.md index 17465c49ee8..c5af0441e8d 100644 --- a/seed/ts-sdk/oauth-client-credentials-custom/README.md +++ b/seed/ts-sdk/oauth-client-credentials-custom/README.md @@ -85,10 +85,10 @@ const response = await client.auth.getTokenWithClientCredentials(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-custom/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/oauth-client-credentials-default/README.md b/seed/ts-sdk/oauth-client-credentials-default/README.md index 3384298c76d..806d84eb609 100644 --- a/seed/ts-sdk/oauth-client-credentials-default/README.md +++ b/seed/ts-sdk/oauth-client-credentials-default/README.md @@ -82,10 +82,10 @@ const response = await client.auth.getToken(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/oauth-client-credentials-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/oauth-client-credentials-environment-variables/README.md b/seed/ts-sdk/oauth-client-credentials-environment-variables/README.md index 35ab5dcb932..39e7ee618ac 100644 --- a/seed/ts-sdk/oauth-client-credentials-environment-variables/README.md +++ b/seed/ts-sdk/oauth-client-credentials-environment-variables/README.md @@ -83,10 +83,10 @@ const response = await client.auth.getTokenWithClientCredentials(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-environment-variables/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md index 7ca4ac454e6..2be8d5e015c 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/README.md @@ -83,10 +83,10 @@ const response = await client.auth.getToken(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/never-throw-errors/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md index 7ca4ac454e6..2be8d5e015c 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/README.md @@ -83,10 +83,10 @@ const response = await client.auth.getToken(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/oauth-client-credentials-nested-root/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/oauth-client-credentials/README.md b/seed/ts-sdk/oauth-client-credentials/README.md index 314ec7d3a45..94c77c2841b 100644 --- a/seed/ts-sdk/oauth-client-credentials/README.md +++ b/seed/ts-sdk/oauth-client-credentials/README.md @@ -83,10 +83,10 @@ const response = await client.auth.getTokenWithClientCredentials(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/oauth-client-credentials/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/oauth-client-credentials/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/oauth-client-credentials/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/oauth-client-credentials/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/oauth-client-credentials/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/object/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/object/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/object/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/object/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/objects-with-imports/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/objects-with-imports/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/objects-with-imports/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/objects-with-imports/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/optional/README.md b/seed/ts-sdk/optional/README.md index eb10419ebf3..46bffa408f6 100644 --- a/seed/ts-sdk/optional/README.md +++ b/seed/ts-sdk/optional/README.md @@ -66,10 +66,10 @@ const response = await client.optional.sendOptionalBody(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/optional/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/optional/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/optional/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/optional/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/optional/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/package-yml/README.md b/seed/ts-sdk/package-yml/README.md index 3b7f5e6d1bd..1b342b5f9cf 100644 --- a/seed/ts-sdk/package-yml/README.md +++ b/seed/ts-sdk/package-yml/README.md @@ -65,10 +65,10 @@ const response = await client.echo(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/package-yml/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/package-yml/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/package-yml/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/package-yml/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/package-yml/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/pagination/.mock/definition/users.yml b/seed/ts-sdk/pagination/.mock/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/seed/ts-sdk/pagination/.mock/definition/users.yml +++ b/seed/ts-sdk/pagination/.mock/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/seed/ts-sdk/pagination/README.md b/seed/ts-sdk/pagination/README.md index 52b25a4f751..84ec8712e50 100644 --- a/seed/ts-sdk/pagination/README.md +++ b/seed/ts-sdk/pagination/README.md @@ -118,10 +118,10 @@ const response = await client.users.listWithMixedTypeCursorPagination(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListUsersOffsetStepPaginationRequest.ts b/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListUsersOffsetStepPaginationRequest.ts index 48113ae266d..4dde917e627 100644 --- a/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListUsersOffsetStepPaginationRequest.ts +++ b/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListUsersOffsetStepPaginationRequest.ts @@ -18,7 +18,7 @@ export interface ListUsersOffsetStepPaginationRequest { */ page?: number; /** - * The maxiumum number of elements to return. + * The maximum number of elements to return. * This is also used as the step size in this * paginated endpoint. */ diff --git a/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListWithOffsetPaginationHasNextPageRequest.ts b/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListWithOffsetPaginationHasNextPageRequest.ts index f1eaf10bd35..921a0f8f180 100644 --- a/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListWithOffsetPaginationHasNextPageRequest.ts +++ b/seed/ts-sdk/pagination/src/api/resources/users/client/requests/ListWithOffsetPaginationHasNextPageRequest.ts @@ -18,7 +18,7 @@ export interface ListWithOffsetPaginationHasNextPageRequest { */ page?: number; /** - * The maxiumum number of elements to return. + * The maximum number of elements to return. * This is also used as the step size in this * paginated endpoint. */ diff --git a/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/pagination/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/pagination/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/pagination/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/pagination/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/pagination/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/path-parameters/default/README.md b/seed/ts-sdk/path-parameters/default/README.md index 9e6925b9747..387a3288585 100644 --- a/seed/ts-sdk/path-parameters/default/README.md +++ b/seed/ts-sdk/path-parameters/default/README.md @@ -78,10 +78,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/path-parameters/default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/path-parameters/default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/path-parameters/default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/README.md b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/README.md index 9e6925b9747..387a3288585 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/README.md +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/README.md @@ -78,10 +78,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-no-serde/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/README.md b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/README.md index 9e6925b9747..387a3288585 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/README.md +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/README.md @@ -78,10 +78,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters-retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters/README.md b/seed/ts-sdk/path-parameters/inline-path-parameters/README.md index 9e6925b9747..387a3288585 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters/README.md +++ b/seed/ts-sdk/path-parameters/inline-path-parameters/README.md @@ -78,10 +78,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/path-parameters/inline-path-parameters/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/path-parameters/retain-original-casing/README.md b/seed/ts-sdk/path-parameters/retain-original-casing/README.md index 9e6925b9747..387a3288585 100644 --- a/seed/ts-sdk/path-parameters/retain-original-casing/README.md +++ b/seed/ts-sdk/path-parameters/retain-original-casing/README.md @@ -78,10 +78,10 @@ const response = await client.user.createUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/path-parameters/retain-original-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/plain-text/README.md b/seed/ts-sdk/plain-text/README.md index 14f40a0dc8f..3d5f43d7790 100644 --- a/seed/ts-sdk/plain-text/README.md +++ b/seed/ts-sdk/plain-text/README.md @@ -62,10 +62,10 @@ const response = await client.service.getText(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/plain-text/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/query-parameters/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/reserved-keywords/README.md b/seed/ts-sdk/reserved-keywords/README.md index 9117a053744..be3b04c1eb5 100644 --- a/seed/ts-sdk/reserved-keywords/README.md +++ b/seed/ts-sdk/reserved-keywords/README.md @@ -77,10 +77,10 @@ const response = await client.package.test(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/reserved-keywords/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/reserved-keywords/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/reserved-keywords/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/reserved-keywords/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/reserved-keywords/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/response-property/README.md b/seed/ts-sdk/response-property/README.md index dd8040c1e98..c0aa2467c9b 100644 --- a/seed/ts-sdk/response-property/README.md +++ b/seed/ts-sdk/response-property/README.md @@ -62,10 +62,10 @@ const response = await client.service.getMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/response-property/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/response-property/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/response-property/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/response-property/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/response-property/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/seed.yml b/seed/ts-sdk/seed.yml index def17d60ef9..15e671db27a 100644 --- a/seed/ts-sdk/seed.yml +++ b/seed/ts-sdk/seed.yml @@ -40,7 +40,7 @@ fixtures: - customConfig: noScripts: true extraDependencies: - dummmy: "dummy" + dummy: "dummy" outputFolder: noScripts - customConfig: useBrandedStringAliases: true @@ -153,7 +153,7 @@ fixtures: outputFolder: no-custom-config - customConfig: includeContentHeadersOnFileDownloadResponse: true - outputFolder: file-download-reponse-headers + outputFolder: file-download-response-headers file-upload: - customConfig: null outputFolder: no-custom-config diff --git a/seed/ts-sdk/server-sent-event-examples/README.md b/seed/ts-sdk/server-sent-event-examples/README.md index c6fc0cd0193..3125f2a9628 100644 --- a/seed/ts-sdk/server-sent-event-examples/README.md +++ b/seed/ts-sdk/server-sent-event-examples/README.md @@ -80,10 +80,10 @@ const response = await client.completions.stream(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/server-sent-event-examples/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/server-sent-event-examples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/server-sent-event-examples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/server-sent-event-examples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/server-sent-event-examples/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/server-sent-events/README.md b/seed/ts-sdk/server-sent-events/README.md index 9173e68d7e9..6d1e978a1a3 100644 --- a/seed/ts-sdk/server-sent-events/README.md +++ b/seed/ts-sdk/server-sent-events/README.md @@ -80,10 +80,10 @@ const response = await client.completions.stream(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/server-sent-events/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/server-sent-events/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/server-sent-events/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/server-sent-events/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/server-sent-events/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/simple-fhir/README.md b/seed/ts-sdk/simple-fhir/README.md index 361a6362f60..6d9acb15ca5 100644 --- a/seed/ts-sdk/simple-fhir/README.md +++ b/seed/ts-sdk/simple-fhir/README.md @@ -62,10 +62,10 @@ const response = await client.getAccount(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/simple-fhir/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/simple-fhir/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/simple-fhir/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/simple-fhir/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/simple-fhir/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/single-url-environment-default/README.md b/seed/ts-sdk/single-url-environment-default/README.md index f89da1021b1..50d0261eb1e 100644 --- a/seed/ts-sdk/single-url-environment-default/README.md +++ b/seed/ts-sdk/single-url-environment-default/README.md @@ -62,10 +62,10 @@ const response = await client.dummy.getDummy(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/single-url-environment-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/single-url-environment-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/single-url-environment-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/single-url-environment-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/single-url-environment-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/single-url-environment-no-default/README.md b/seed/ts-sdk/single-url-environment-no-default/README.md index 71add4c39c9..1021577f906 100644 --- a/seed/ts-sdk/single-url-environment-no-default/README.md +++ b/seed/ts-sdk/single-url-environment-no-default/README.md @@ -68,10 +68,10 @@ const response = await client.dummy.getDummy(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/single-url-environment-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/single-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/single-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/single-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/single-url-environment-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/streaming/allow-custom-fetcher/README.md b/seed/ts-sdk/streaming/allow-custom-fetcher/README.md index 31450502d8a..f50dcc06b7e 100644 --- a/seed/ts-sdk/streaming/allow-custom-fetcher/README.md +++ b/seed/ts-sdk/streaming/allow-custom-fetcher/README.md @@ -80,10 +80,10 @@ const response = await client.dummy.generateStream(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/streaming/allow-custom-fetcher/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/streaming/no-custom-config/README.md b/seed/ts-sdk/streaming/no-custom-config/README.md index 31450502d8a..f50dcc06b7e 100644 --- a/seed/ts-sdk/streaming/no-custom-config/README.md +++ b/seed/ts-sdk/streaming/no-custom-config/README.md @@ -80,10 +80,10 @@ const response = await client.dummy.generateStream(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/streaming/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/streaming/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/streaming/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/streaming/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/streaming/no-serde-layer/README.md b/seed/ts-sdk/streaming/no-serde-layer/README.md index 31450502d8a..f50dcc06b7e 100644 --- a/seed/ts-sdk/streaming/no-serde-layer/README.md +++ b/seed/ts-sdk/streaming/no-serde-layer/README.md @@ -80,10 +80,10 @@ const response = await client.dummy.generateStream(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/streaming/no-serde-layer/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/streaming/no-serde-layer/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/trace/exhaustive/.mock/definition/submission.yml b/seed/ts-sdk/trace/exhaustive/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ts-sdk/trace/exhaustive/.mock/definition/submission.yml +++ b/seed/ts-sdk/trace/exhaustive/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ts-sdk/trace/exhaustive/README.md b/seed/ts-sdk/trace/exhaustive/README.md index de7480f1f0d..64c7fdd32c4 100644 --- a/seed/ts-sdk/trace/exhaustive/README.md +++ b/seed/ts-sdk/trace/exhaustive/README.md @@ -78,10 +78,10 @@ const response = await client.admin.updateTestSubmissionStatus(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPage.ts b/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPage.ts index 12058c800f1..69fe715d3c2 100644 --- a/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPage.ts +++ b/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPage.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPage { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPageV2.ts b/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPageV2.ts index 5a1e392d148..c4fcb823606 100644 --- a/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPageV2.ts +++ b/seed/ts-sdk/trace/exhaustive/src/api/resources/submission/types/TraceResponsesPageV2.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPageV2 { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/exhaustive/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/trace/exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/trace/exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/trace/exhaustive/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/trace/no-custom-config/.mock/definition/submission.yml b/seed/ts-sdk/trace/no-custom-config/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ts-sdk/trace/no-custom-config/.mock/definition/submission.yml +++ b/seed/ts-sdk/trace/no-custom-config/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ts-sdk/trace/no-custom-config/README.md b/seed/ts-sdk/trace/no-custom-config/README.md index dcdf1f2a813..83f87ec09b9 100644 --- a/seed/ts-sdk/trace/no-custom-config/README.md +++ b/seed/ts-sdk/trace/no-custom-config/README.md @@ -77,10 +77,10 @@ const response = await client.admin.updateTestSubmissionStatus(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPage.ts b/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPage.ts index 12058c800f1..69fe715d3c2 100644 --- a/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPage.ts +++ b/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPage.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPage { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPageV2.ts b/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPageV2.ts index 5a1e392d148..c4fcb823606 100644 --- a/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPageV2.ts +++ b/seed/ts-sdk/trace/no-custom-config/src/api/resources/submission/types/TraceResponsesPageV2.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPageV2 { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/trace/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/trace/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/trace/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/.mock/definition/submission.yml b/seed/ts-sdk/trace/no-zurg-no-throwing/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/.mock/definition/submission.yml +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/README.md b/seed/ts-sdk/trace/no-zurg-no-throwing/README.md index dcdf1f2a813..83f87ec09b9 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/README.md +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/README.md @@ -77,10 +77,10 @@ const response = await client.admin.updateTestSubmissionStatus(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPage.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPage.ts index 12058c800f1..69fe715d3c2 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPage.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPage.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPage { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPageV2.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPageV2.ts index 5a1e392d148..c4fcb823606 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPageV2.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/submission/types/TraceResponsesPageV2.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPageV2 { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/no-zurg-trace/.mock/definition/submission.yml b/seed/ts-sdk/trace/no-zurg-trace/.mock/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/.mock/definition/submission.yml +++ b/seed/ts-sdk/trace/no-zurg-trace/.mock/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/seed/ts-sdk/trace/no-zurg-trace/README.md b/seed/ts-sdk/trace/no-zurg-trace/README.md index dcdf1f2a813..83f87ec09b9 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/README.md +++ b/seed/ts-sdk/trace/no-zurg-trace/README.md @@ -77,10 +77,10 @@ const response = await client.admin.updateTestSubmissionStatus(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPage.ts b/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPage.ts index 12058c800f1..69fe715d3c2 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPage.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPage.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPage { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPageV2.ts b/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPageV2.ts index 5a1e392d148..c4fcb823606 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPageV2.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/submission/types/TraceResponsesPageV2.ts @@ -6,7 +6,7 @@ import * as SeedTrace from "../../../index"; export interface TraceResponsesPageV2 { /** - * If present, use this to load subseqent pages. + * If present, use this to load subsequent pages. * The offset is the id of the next trace response to load. */ offset?: number; diff --git a/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/ts-express-casing/README.md b/seed/ts-sdk/ts-express-casing/README.md index 43e28012c13..689605fa071 100644 --- a/seed/ts-sdk/ts-express-casing/README.md +++ b/seed/ts-sdk/ts-express-casing/README.md @@ -79,10 +79,10 @@ const response = await client.imdb.createMovie(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/ts-express-casing/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/ts-express-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/ts-express-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/ts-express-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/ts-express-casing/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/ts-inline-types/inline/README.md b/seed/ts-sdk/ts-inline-types/inline/README.md index 5772be148a4..9409c0a1f09 100644 --- a/seed/ts-sdk/ts-inline-types/inline/README.md +++ b/seed/ts-sdk/ts-inline-types/inline/README.md @@ -80,10 +80,10 @@ const response = await client.getRoot(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/ts-inline-types/inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/ts-inline-types/no-inline/README.md b/seed/ts-sdk/ts-inline-types/no-inline/README.md index 5772be148a4..9409c0a1f09 100644 --- a/seed/ts-sdk/ts-inline-types/no-inline/README.md +++ b/seed/ts-sdk/ts-inline-types/no-inline/README.md @@ -80,10 +80,10 @@ const response = await client.getRoot(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/ts-inline-types/no-inline/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md b/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md index f7ce3307bc6..22d2c7ed992 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/README.md @@ -62,10 +62,10 @@ const response = await client.union.get(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md index f7ce3307bc6..22d2c7ed992 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/README.md @@ -62,10 +62,10 @@ const response = await client.union.get(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/unions/.mock/definition/types.yml b/seed/ts-sdk/unions/.mock/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/seed/ts-sdk/unions/.mock/definition/types.yml +++ b/seed/ts-sdk/unions/.mock/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: diff --git a/seed/ts-sdk/unions/README.md b/seed/ts-sdk/unions/README.md index b3a7ac6dafe..7d24b872b23 100644 --- a/seed/ts-sdk/unions/README.md +++ b/seed/ts-sdk/unions/README.md @@ -62,10 +62,10 @@ const response = await client.union.get(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/unions/src/api/resources/types/types/UnionWithOptionalTime.ts b/seed/ts-sdk/unions/src/api/resources/types/types/UnionWithOptionalTime.ts index 2bfb3525ca8..464fc8bf665 100644 --- a/seed/ts-sdk/unions/src/api/resources/types/types/UnionWithOptionalTime.ts +++ b/seed/ts-sdk/unions/src/api/resources/types/types/UnionWithOptionalTime.ts @@ -4,7 +4,7 @@ import * as SeedUnions from "../../../index"; -export type UnionWithOptionalTime = SeedUnions.UnionWithOptionalTime.Date_ | SeedUnions.UnionWithOptionalTime.Dateimte; +export type UnionWithOptionalTime = SeedUnions.UnionWithOptionalTime.Date_ | SeedUnions.UnionWithOptionalTime.Datetime; export namespace UnionWithOptionalTime { export interface Date_ { @@ -12,8 +12,8 @@ export namespace UnionWithOptionalTime { value?: string; } - export interface Dateimte { - type: "dateimte"; + export interface Datetime { + type: "datetime"; value?: Date; } } diff --git a/seed/ts-sdk/unions/src/serialization/resources/types/types/UnionWithOptionalTime.ts b/seed/ts-sdk/unions/src/serialization/resources/types/types/UnionWithOptionalTime.ts index 88e752eb8ca..c346afd154e 100644 --- a/seed/ts-sdk/unions/src/serialization/resources/types/types/UnionWithOptionalTime.ts +++ b/seed/ts-sdk/unions/src/serialization/resources/types/types/UnionWithOptionalTime.ts @@ -14,7 +14,7 @@ export const UnionWithOptionalTime: core.serialization.Schema< date: core.serialization.object({ value: core.serialization.string().optional(), }), - dateimte: core.serialization.object({ + datetime: core.serialization.object({ value: core.serialization.date().optional(), }), }) @@ -24,15 +24,15 @@ export const UnionWithOptionalTime: core.serialization.Schema< }); export declare namespace UnionWithOptionalTime { - export type Raw = UnionWithOptionalTime.Date | UnionWithOptionalTime.Dateimte; + export type Raw = UnionWithOptionalTime.Date | UnionWithOptionalTime.Datetime; export interface Date { type: "date"; value?: string | null; } - export interface Dateimte { - type: "dateimte"; + export interface Datetime { + type: "datetime"; value?: string | null; } } diff --git a/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/unions/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/unions/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/unions/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/unions/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/unions/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/unknown/no-custom-config/README.md b/seed/ts-sdk/unknown/no-custom-config/README.md index c0620719857..43b67ba0270 100644 --- a/seed/ts-sdk/unknown/no-custom-config/README.md +++ b/seed/ts-sdk/unknown/no-custom-config/README.md @@ -64,10 +64,10 @@ const response = await client.unknown.post(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/unknown/no-custom-config/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/unknown/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/unknown/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/unknown/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/unknown/no-custom-config/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/unknown/unknown-as-any/README.md b/seed/ts-sdk/unknown/unknown-as-any/README.md index c0620719857..43b67ba0270 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/README.md +++ b/seed/ts-sdk/unknown/unknown-as-any/README.md @@ -64,10 +64,10 @@ const response = await client.unknown.post(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/unknown/unknown-as-any/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/validation/README.md b/seed/ts-sdk/validation/README.md index 3502d9d026f..e8c9230fa5e 100644 --- a/seed/ts-sdk/validation/README.md +++ b/seed/ts-sdk/validation/README.md @@ -80,10 +80,10 @@ const response = await client.create(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/validation/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/validation/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/variables/README.md b/seed/ts-sdk/variables/README.md index 38965876afd..7e684cdf08d 100644 --- a/seed/ts-sdk/variables/README.md +++ b/seed/ts-sdk/variables/README.md @@ -62,10 +62,10 @@ const response = await client.service.post(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/variables/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/version-no-default/README.md b/seed/ts-sdk/version-no-default/README.md index 42fa2697000..bb87699ddbd 100644 --- a/seed/ts-sdk/version-no-default/README.md +++ b/seed/ts-sdk/version-no-default/README.md @@ -62,10 +62,10 @@ const response = await client.user.getUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/version-no-default/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/version-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/version-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/version-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/version-no-default/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/seed/ts-sdk/version/README.md b/seed/ts-sdk/version/README.md index a91ea2512a3..3571d11b726 100644 --- a/seed/ts-sdk/version/README.md +++ b/seed/ts-sdk/version/README.md @@ -62,10 +62,10 @@ const response = await client.user.getUser(..., { ### Retries The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long -as the request is deemed retriable and the number of retry attempts has not grown larger than the configured +as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). -A request is deemed retriable when any of the following HTTP status codes is returned: +A request is deemed retryable when any of the following HTTP status codes is returned: - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) diff --git a/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts b/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts index 1dc9be0cc0e..172c1c26b7a 100644 --- a/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts +++ b/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/Node18UniversalStreamWrapper.test.ts @@ -159,7 +159,7 @@ describe("Node18UniversalStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts b/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts index 0c99d3b2655..19c26668e7f 100644 --- a/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts +++ b/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/NodePre18StreamWrapper.test.ts @@ -111,7 +111,7 @@ describe("NodePre18StreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = (await import("readable-stream")).Readable.from(["test", "test"]); let data = ""; const stream = new NodePre18StreamWrapper(rawStream); diff --git a/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts b/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts index 1d171ce6c67..0ea14835065 100644 --- a/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts +++ b/seed/ts-sdk/version/tests/unit/fetcher/stream-wrappers/UndiciStreamWrapper.test.ts @@ -134,7 +134,7 @@ describe("UndiciStreamWrapper", () => { expect(data).toEqual({ test: "test" }); }); - it("should allow use with async iteratable stream", async () => { + it("should allow use with async iterable stream", async () => { const rawStream = new ReadableStream({ start(controller) { controller.enqueue(new TextEncoder().encode("test")); diff --git a/seed/ts-sdk/version/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts b/seed/ts-sdk/version/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts index 2cd9b125146..09d594d0717 100644 --- a/seed/ts-sdk/version/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts +++ b/seed/ts-sdk/version/tests/unit/zurg/schema-utils/getSchemaUtils.test.ts @@ -16,7 +16,7 @@ describe("getSchemaUtils", () => { describe("transform()", () => { itSchema( - "transorm and untransform run correctly", + "transform and untransform run correctly", string().transform({ transform: (x) => x + "X", untransform: (x) => (x as string).slice(0, -1), diff --git a/test-definitions/fern/apis/exhaustive/definition/endpoints/params.yml b/test-definitions/fern/apis/exhaustive/definition/endpoints/params.yml index c76b12182c1..8dd6fa96197 100644 --- a/test-definitions/fern/apis/exhaustive/definition/endpoints/params.yml +++ b/test-definitions/fern/apis/exhaustive/definition/endpoints/params.yml @@ -40,7 +40,7 @@ service: query: type: string allow-multiple: true - numer: + number: type: integer allow-multiple: true diff --git a/test-definitions/fern/apis/file-upload/definition/service.yml b/test-definitions/fern/apis/file-upload/definition/service.yml index 45b4b3529c1..7a659692cb6 100644 --- a/test-definitions/fern/apis/file-upload/definition/service.yml +++ b/test-definitions/fern/apis/file-upload/definition/service.yml @@ -26,7 +26,7 @@ service: path: /just-file method: POST request: - name: JustFileRequet + name: JustFileRequest body: properties: file: file @@ -35,7 +35,7 @@ service: path: /just-file-with-query-params method: POST request: - name: JustFileWithQueryParamsRequet + name: JustFileWithQueryParamsRequest query-parameters: maybeString: optional integer: integer diff --git a/test-definitions/fern/apis/file-upload/ir.json b/test-definitions/fern/apis/file-upload/ir.json index 84e218575cc..c5fb0c5ee73 100644 --- a/test-definitions/fern/apis/file-upload/ir.json +++ b/test-definitions/fern/apis/file-upload/ir.json @@ -1283,22 +1283,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "properties": [ @@ -1339,22 +1339,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "bodyKey": { @@ -1663,22 +1663,22 @@ "requestBody": { "type": "fileUpload", "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "properties": [ @@ -1719,22 +1719,22 @@ "shape": { "type": "wrapper", "wrapperName": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "bodyKey": { @@ -3110,22 +3110,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileRequet", + "originalName": "JustFileRequest", "camelCase": { - "unsafeName": "justFileRequet", - "safeName": "justFileRequet" + "unsafeName": "justFileRequest", + "safeName": "justFileRequest" }, "snakeCase": { - "unsafeName": "just_file_requet", - "safeName": "just_file_requet" + "unsafeName": "just_file_request", + "safeName": "just_file_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_REQUET", - "safeName": "JUST_FILE_REQUET" + "unsafeName": "JUST_FILE_REQUEST", + "safeName": "JUST_FILE_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileRequet", - "safeName": "JustFileRequet" + "unsafeName": "JustFileRequest", + "safeName": "JustFileRequest" } }, "fernFilepath": { @@ -3286,22 +3286,22 @@ "type": "inlined", "declaration": { "name": { - "originalName": "JustFileWithQueryParamsRequet", + "originalName": "JustFileWithQueryParamsRequest", "camelCase": { - "unsafeName": "justFileWithQueryParamsRequet", - "safeName": "justFileWithQueryParamsRequet" + "unsafeName": "justFileWithQueryParamsRequest", + "safeName": "justFileWithQueryParamsRequest" }, "snakeCase": { - "unsafeName": "just_file_with_query_params_requet", - "safeName": "just_file_with_query_params_requet" + "unsafeName": "just_file_with_query_params_request", + "safeName": "just_file_with_query_params_request" }, "screamingSnakeCase": { - "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", - "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUEST" }, "pascalCase": { - "unsafeName": "JustFileWithQueryParamsRequet", - "safeName": "JustFileWithQueryParamsRequet" + "unsafeName": "JustFileWithQueryParamsRequest", + "safeName": "JustFileWithQueryParamsRequest" } }, "fernFilepath": { diff --git a/test-definitions/fern/apis/multi-line-docs/definition/user.yml b/test-definitions/fern/apis/multi-line-docs/definition/user.yml index a7ffb021a43..066ec1512c7 100644 --- a/test-definitions/fern/apis/multi-line-docs/definition/user.yml +++ b/test-definitions/fern/apis/multi-line-docs/definition/user.yml @@ -1,4 +1,4 @@ -imports: +imports: root: __package__.yml types: @@ -11,7 +11,7 @@ types: id: string name: type: string - docs: | + docs: | The user's name. This name is unique to each user. A few examples are included below: - Alice - Bob @@ -37,7 +37,7 @@ service: docs: | The ID of the user to retrieve. This ID is unique to each user. - + createUser: docs: | Create a new user. @@ -57,5 +57,5 @@ service: type: optional docs: | The age of the user. - This propery is not required. + This property is not required. response: User \ No newline at end of file diff --git a/test-definitions/fern/apis/pagination/definition/users.yml b/test-definitions/fern/apis/pagination/definition/users.yml index 087faa993a9..a9d05ed7e41 100644 --- a/test-definitions/fern/apis/pagination/definition/users.yml +++ b/test-definitions/fern/apis/pagination/definition/users.yml @@ -228,7 +228,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: @@ -252,7 +252,7 @@ service: limit: type: optional docs: | - The maxiumum number of elements to return. + The maximum number of elements to return. This is also used as the step size in this paginated endpoint. order: diff --git a/test-definitions/fern/apis/trace/definition/submission.yml b/test-definitions/fern/apis/trace/definition/submission.yml index 20b3b4d8e0d..12b56fe884e 100644 --- a/test-definitions/fern/apis/trace/definition/submission.yml +++ b/test-definitions/fern/apis/trace/definition/submission.yml @@ -385,7 +385,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list TraceResponsesPageV2: @@ -393,7 +393,7 @@ types: offset: type: optional docs: | - If present, use this to load subseqent pages. + If present, use this to load subsequent pages. The offset is the id of the next trace response to load. traceResponses: list GetTraceResponsesPageRequest: diff --git a/test-definitions/fern/apis/unions/definition/types.yml b/test-definitions/fern/apis/unions/definition/types.yml index 4327cf361f1..69a264c7cef 100644 --- a/test-definitions/fern/apis/unions/definition/types.yml +++ b/test-definitions/fern/apis/unions/definition/types.yml @@ -62,7 +62,7 @@ types: UnionWithOptionalTime: union: date: optional - dateimte: optional + datetime: optional UnionWithSingleElement: union: