Warning log : Ignoring the 2nd definition
See original GitHub issueHi,
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:
- Created 5 years ago
- Reactions:1
- Comments:16 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sebasmagri any progress on the PR?
I’m still seeing this warning for
delete
path, because cannot define operation with the namedelete
in strict mode.