···5566# Contributing
7788-Thank you for considering contributing to Hey API.
88+Thank you for considering contributing to Hey API. In order to increase the likelihood of your changes being merged, first open an issue if one does not already exist. Once an issue exists, let us know you'd like to work on it. We will confirm whether we're looking to resolve the issue and provide you with guidance if required. This is to ensure our codebase remains in good state and all features contribute to Hey API's [objectives](/about).
991010## Development Requirements
1111
+1-1
docs/index.md
···77 actions:
88 - theme: brand
99 text: Get Started
1010- link: /welcome
1010+ link: /openapi-ts/get-started
1111 - theme: alt
1212 text: View on GitHub
1313 link: https://github.com/hey-api/openapi-ts
+1-1
docs/openapi-ts/configuration.md
···155155By default, `openapi-ts` exports schemas from your OpenAPI specification as plain JavaScript objects. A great use case for schemas is client-side form input validation.
156156157157```ts
158158-import { $Schema } from 'src/client'
158158+import { $Schema } from 'client/schemas'
159159160160const maxInputLength = $Schema.properties.text.maxLength
161161
+25-8
docs/openapi-ts/migrating.md
···11111212These changes haven't been released yet. However, you can migrate your code today to save time on migration once they're released.
13131414+### Deprecated exports from `index.ts`
1515+1616+Currently, `index.ts` file exports all generated artifacts.
1717+1818+```ts
1919+export { ApiError } from './core/ApiError';
2020+export { CancelablePromise, CancelError } from './core/CancelablePromise';
2121+export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI';
2222+export * from './models';
2323+export * from './schemas';
2424+export * from './services';
2525+```
2626+2727+We will be slowly moving away from this practice. Any non-core related imports should be imported as
2828+2929+```ts
3030+import type { Model } from 'client/models';
3131+import { $Schema } from 'client/schemas';
3232+import { DefaultService } from 'client/services';
3333+```
3434+3535+You don't have to update imports from `core` directory. These will be addressed in later releases.
3636+1437### Deprecated `useOptions`
15381639This config option is deprecated and will be removed.
···78101By default, generated clients will use a single object argument to pass values to API calls. This is a significant change from the previous default of unspecified array of arguments. If migrating your application in one go isn't feasible, we recommend deprecating your old client and generating a new client.
7910280103```ts
8181-import { DefaultService } from 'client' // <-- old client with array arguments
104104+import { DefaultService } from 'client/services' // <-- old client with array arguments
821058383-import { DefaultService } from 'client_v2' // <-- new client with options argument
106106+import { DefaultService } from 'client_v2/services' // <-- new client with options argument
84107```
8510886109This way, you can gradually switch over to the new syntax as you update parts of your code. Once you've removed all instances of `client` imports, you can safely delete the old `client` folder and find and replace all `client_v2` calls to `client`.
···129152- `useUnionTypes` has been removed (see [v0.27.24](#v0-27-24))
130153- `indent` has been removed (see [v0.27.26](#v0-27-26))
131154- `postfixModels` has been removed (see [v0.35.0](#v0-35-0))
132132-133133-### Deprecated
134134-135135-- `postfixServices` is deprecated (see [@next](#next))
136136-- `request` is deprecated (see [@next](#next))
137137-- `name` is deprecated (see [@next](#next))
+2-2
docs/welcome.md
docs/about.md
···11---
22-title: Hey 👋
22+title: About
33description: Hello from Hey API.
44---
5566-# Hey 👋
66+# About Hey API
7788Hey API's objective is to provide a set of TypeScript tools to manage API interactions. Whether you're building a front-end application, API-to-API service, or micro-frontends, we want Hey API to be your go-to resource.
99