question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning log : Ignoring the 2nd definition

See original GitHub issue

Hi,

not sure if I am using the library correctly, we are trying to define the openApi using :

  • YAML file
  • Operations

Problem :

we get the warning express-openapi: /health.get has already been defined. Ignoring the 2nd definition...

Expected :

no warning

Setup :

return EOA.initialize({
      app,
      apiDoc: path.resolve(__dirname, 'openapi.yaml'),
      operations: {
        getHealth: (req, res) => {res.json({'result': 'ok'})}
      }
    });

openapi.yaml :

paths:
  /health:
    get:
      operationId: getHealth
      description: Health check
      responses:
        200:
          description: ''

Question :

Are we miss using the library ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

6reactions
jsdevelcommented, Apr 9, 2019

@sebasmagri any progress on the PR?

4reactions
petriaarniocommented, Oct 12, 2020

I’m still seeing this warning for delete path, because cannot define operation with the name delete in strict mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linker warning "second definition ignored" when including two ...
h library I am writing is a static library and all the project's parameters (e.g. /MD, include directories, dependencies, MFC, etc) are set ......
Read more >
Warning Log - RISA
Warning Number Warning Log Message Cause WARNING 41023 Optimize concrete beam solver error. The concrete beam solver h... WARNING 41064 Diaphragm region is not rectangular....
Read more >
Logging Levels: What They Are & How to Choose Them
WARN – the log level that indicates that something unexpected happened in the application, a problem, or a situation that might disturb one...
Read more >
Ignore Definition & Meaning - Merriam-Webster
ignored; ignoring. transitive verb. : to refuse to take notice of. : to reject (a bill of indictment) as ungrounded. ignorable.
Read more >
Warning Options (Using the GNU Compiler Collection (GCC))
Attributes considered include alloc_align , alloc_size , cold , const , hot , leaf , malloc , nonnull , noreturn , nothrow ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found