A Monorepo of various packages to power OpenAPI in node.
- See express-openapi
- See koa-openapi
- express-openapi
- fetch-openapi
- fs-routes
- openapi-default-setter
- openapi-framework
- openapi-jsonschema-parameters
- openapi-request-coercer
- openapi-request-validator
- openapi-response-validator
- openapi-schema-validator
- openapi-types
This monorepo uses lerna for development. See the root package.json for helpful scripts.
Let's say you're working on a package under ./packages. Here's what you do:
cd open-api
npm run bootstrap
npm t
- Make your changes.
- Do not bump the version in package.json. A maintainer will handle that once your PR is merged.
- Once you're satisfied with your changes:
- Create a new branch
git checkout -b my-branch
(in case you haven't done so already). ./bin/commit packages/<package_you're_working_on> 'commit message describing your change. can be multi line here. just close with a single quote like so:'
- Push your change to your fork
- Open a PR.
Several scripts have been created to aid in the development of this monorepo (see ./bin). They assume that your $PWD
is the root of the repository. Here is a brief summary of common actions:
- Commit changes to a package -
./bin/commit packages/<package_to_commit> 'Commit message'
(the commit message will be prepended with the package name e.g.<package_to_commit>: Commit message
- These reduce boilerplate and are called from npm scripts in leaf repos.
- nyc
- tsc
- mocha
The MIT License (MIT)
Copyright (c) 2018 Kogo Software LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.