Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdakos1 committed Jun 19, 2020
1 parent 9e05848 commit 5e8a739
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
14 changes: 8 additions & 6 deletions example/src/routes/pet.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ const { Router } = require('express');

const router = Router();

/* block comments aren't parsed */

/**
* GET /hello-world
* @summary Hello World
* @response 200 - OK
* Doc comments are only parsed if they have `METHOD /path` at the top of the
* comment.
*/

/* block comment */

/**
* Doc comment
* For example, this comment is ignored.
* GET /hello/world
* @summary Says hello
* @response 200 - OK
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion openapi-ui-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openapi-ui-express",
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",
"dependencies": {
"express": "^4.17.1"
Expand Down
1 change: 0 additions & 1 deletion src/util/commentsToOpenApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ describe('commentsToOpenApi', () => {
*/
});

// TODO: this isn't valid openapi, schema isn't allowed here.
const expected = {
paths: {
'/hello': {
Expand Down

0 comments on commit 5e8a739

Please sign in to comment.