Comments (3)
Hello there TrevorDMartin 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
from tsoa.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
from tsoa.
If two different endpoints define the same variable for a type only one type is represented in the schema.
I know this was the secondary issue described here, but this is the issue giving me the runaround today.
Hypothetical example that follows the structure of what I'm trying to accomplish:
Upon further reading of the initial issue, the whole description is actually what I'm experiencing so I'll truncate my initial restating of the problem.
My thoughts on some potential solutions:
- just roll a simple iterator when collision happens
CollidingType_{n}
for all collisions- feels like conceptually the wrong solution, more like a workaround that might result in bad side-effects
- hash/obfuscate the resolved module path and prefix type with it
- more closely aligns tsoa to how TS handles this sort of same name resolution
- however, pretty complex approach
Ultimately I think if I had been presented with a warning or error that the collision occurred, just that would have been acceptable. Changing the variable name for the type was trivial, but it was trying to find out where the erasure of the second type was coming from that took time.
Any chance of a config option to opt into a 'strict no collisions' mode?
from tsoa.
Related Issues (20)
- [Discussion] Why is TS Compiler API not used? HOT 3
- Workaround - tsoa 5 - @Middlewares decorator - middlewares not called HOT 4
- Swagger schema not generated in the order declared in type or interface HOT 3
- Query parameter default value not generated to spec file in case of custom types HOT 4
- Query parameter with union type doesn't produce parameter schema HOT 3
- Bug: Type Inference for Nullable Union Types Inaccurate; Suggest Enabling Strict Mode HOT 2
- Error: Unknown type: BigIntKeyword HOT 5
- Missing Support For Unicode Character Classes HOT 1
- Help with tsoa implementation clean architecture express and typescript HOT 7
- Problem Importing JSON with `@example` in TSOA HOT 2
- How to use Prisma model with tsoa HOT 2
- MetadataGenerator.checkForMethodSignatureDuplicates is not working properly HOT 2
- Add ability to inject our custom multer instance to tsoa HOT 3
- How to generate a swagger file for specific controllers or tags HOT 2
- Endpoint to support multiple api versions HOT 3
- Extended interface doesn't produce an `allOf` type HOT 6
- Decorators not working. swagger json contains empty fields HOT 2
- Mock security decorator for testing purpose with Jest HOT 2
- Upload multiple files with different field names HOT 5
- Complicated error response when validating payload that is of a type that is a union of many types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsoa.