Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "rm -rf dist && mkdir dist && tsc --declaration --outDir dist --rootDir src",
"build:example": "rm -rf dist && mkdir dist && tsc --declaration --outDir dist --project example.tsconfig.json",
"start": "npm run build:example && node dist/example/index.js",
"prepublish": "npm run build"
"test": "tsc --noEmit --strictNullChecks test/index.ts --moduleResolution node",
"prepublish": "npm run build && npm test"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/Responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Reference } from './Reference';

export interface Responses {
default?: Response | Reference;
[httpStatusCode: string]: Response | Reference;
[httpStatusCode: string]: Response | Reference | undefined;
}
1 change: 1 addition & 0 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import {odata2openapi} from '../dist'
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"exclude": [
"dist",
"test",
"node_modules",
"example"
]
Expand Down