@sap-cloud-sdk/openapi-generator
TypeScript icon, indicating that this package has built-in type declarations

3.13.0 • Public • Published

SAP Cloud SDK for JavaScript Logo

@sap-cloud-sdk/openapi-generator

This package contains the generator to create your own service module using a OpenAPI specification. This generator is based on the OpenAPI Tools generator for OpenAPI and adds some additional code for convenience to better integrate with the SAP Cloud SDK.

Installation

$ npm install @sap-cloud-sdk/openapi-generator

To run the CLI locally, compile and link the package.

$ yarn install

$ yarn compile

$ npm link

$ openapi-generator help

Usage (CLI)

The generator is primarily meant to be used on the command line:

npx openapi-generator --input path/to/your/service-specification(s) --outputDir path/where/the/modules/are/stored

Run openapi-generator --help for further options.

Usage (programatically)

You can also use the generator programmatically. You will have to provide the options anyways.

import { generate } from '@sap-cloud-sdk/openapi-generator';

// initialize generator options based on what you want to do
const options: GeneratorOptions = initializeOptions();

// generate the client using the provided options
generate(options);

For more detailed overview visit our generator documentation.

Support

The recommended way to get in touch with us is to create an issue on GitHub. Select the issue category Bug, Feature, or Question depending on the nature of your request. We try to provide fixes, features and answers as soon as possible.

Contribute

If you would like to contribute to the SAP Cloud SDK, please make yourself familiar with our contributing guidelines and follow the given instructions.

Links

License

The SAP Cloud SDK is released under the Apache License Version 2.0.

Package Sidebar

Install

npm i @sap-cloud-sdk/openapi-generator

Weekly Downloads

11,494

Version

3.13.0

License

Apache-2.0

Unpacked Size

263 kB

Total Files

128

Last publish

Collaborators

  • tomfrenken
  • deekshas8
  • frankessenberger
  • jjtang
  • marikaner