Contributing
This section explains how to contribute to the current Nuxt-only version of nuxt-openapi-hyperfetch.
What contributions help most
- fix bugs in generation, runtime helpers, or module wiring
- improve generated output for
useFetch,useAsyncData,nuxtServer, or connectors - tighten documentation so it matches the current codebase
- simplify internal architecture without changing user-facing behavior unexpectedly
Before you start
Contributors should be comfortable with:
- Node.js 18+
- TypeScript
- Nuxt module basics
- OpenAPI 3.x contracts
Install and validate the repository locally:
bash
npm install
npm run build
npm run validateCurrent repository shape
The project no longer exposes a contributor-facing CLI workflow. The main product is a Nuxt module that:
- generates the base SDK and types into
openapi/ - generates optional
useFetchanduseAsyncDatacomposables - can generate
nuxtServerNitro routes - can generate headless CRUD connectors
Useful contributor entry points:
src/generate.tsbuilds the base@hey-api/openapi-tsoutputsrc/generators/contains higher-level generatorssrc/module/contains Nuxt module setup and optionsscripts/dev-generate.tsis the local development harness for generation workswagger.yamlis the local spec used for iterationopenapi/is the generated output used for smoke testing and docs validation
Recommended contribution flow
- create a focused branch from the latest
main - make the smallest coherent change that fixes the issue
- regenerate local output if your change affects generated files
- run build and validation commands
- update docs when public behavior changes
- open a pull request with a clear problem statement and test notes
Quick links
- Development setup
- Code style
- Testing expectations
- Documentation standards
- Pull request guide
- Release process
- Current priorities
License
By contributing, you agree that your contributions are licensed under the same Apache-2.0 license used by this repository.
