Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
chgeo committed Dec 4, 2023
1 parent 0011e5b commit 0eab672
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- Use Swagger UI 5
- Drop Node 14 support

### Added

- New option `odataVersion` to specify the OData version used to compile the OpenAPI specs

### Fixed

- Works with `@sap/cds` 7.4 again
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ function addLinkToIndexHtml (service, apiPath) {
* @property {string} basePath - the root path to mount the middleware on
* @property {string} apiPath - the root path for the services (useful if behind a reverse proxy)
* @property {boolean} diagram - whether to render the YUML diagram
* @property {string} odataVersion - the OData version used to compile the OpenAPI specs. Defaults to 4.01
*/
4 changes: 2 additions & 2 deletions tests/server-options.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process.env.TEST_OPTIONS = JSON.stringify({basePath:'/test-base', apiPath: '/root', diagram:false})
process.env.TEST_OPTIONS = JSON.stringify({basePath:'/test-base', apiPath: '/root', diagram:false, odataVersion:'4.0'})
process.env.TEST_OPTIONS_UI = JSON.stringify({customSiteTitle: 'My Custom Title'})

const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')
const { GET, expect } = cds.test.in(__dirname, 'app').run('serve', 'all')

describe('with options', ()=>{
Expand Down

0 comments on commit 0eab672

Please sign in to comment.