Skip to content

Commit

Permalink
Minor change (#29)
Browse files Browse the repository at this point in the history
* minor changes
  • Loading branch information
jeevitha011 authored May 14, 2024
1 parent 2c27e19 commit 674db4a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Version 1.0.4 - 14.05.2024

### Changed

- Minor changes

## Version 1.0.3 - 14.05.2024

### Changed
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ $ npm install @cap-js/openapi

### Usage

```sh
const processor = require('@cap-js/asyncapi/lib/compile')
processor(csn)
```js
const cds = require('@sap/cds')
const { compile } = require('@cap-js/openapi')
```

```js
const csn = await cds.load(cds.env.folders.srv)
const openapiDocument = compile(csn)
```

## Contributing
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
compile: require('./lib/compile')
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cap-js/openapi",
"version": "1.0.3",
"version": "1.0.4",
"description": "CAP tool for OpenAPI",
"repository": {
"type": "git",
Expand All @@ -15,7 +15,7 @@
],
"author": "SAP SE (https://www.sap.com)",
"license": "SEE LICENSE IN LICENSE",
"main": "lib/compile/index.js",
"main": "index.js",
"files": [
"lib/",
"LICENSE"
Expand Down

0 comments on commit 674db4a

Please sign in to comment.