Comments (3)
It looks like the problem is with the nested colors
property of the Institution
interface. The above works if I create a new interface, InstitutionColors
and change colors: {...}
to colors: InstitutionColors
. The framework should be able to take care of this for me.
from tsoa.
The framework should be able to take care of this for me.
@Kjens93, personally I would disagree that any framework should declare your interfaces for you.
This library allows you to declare your interfaces, and then it uses that metadata to automate the routes/swagger definition.
While its very possible for it to do it for you, wouldn't you want to be notified if you didn't declare your interface properly? In particular with this library, you are declaring the contract for other developers to use. Wouldn't it make more sense to have a InstitutionColors interface/class that can be modified in one place that updates all requests/responses that use it?
Just my opinion tho.
from tsoa.
I think this is a valid issue. There's an issue open for it currently: #50
I've been meaning to get to this. Will hopefully have a fix in the next week or so.
from tsoa.
Related Issues (20)
- TypeScript error Object is possibly 'undefined' HOT 2
- Nullable $refs should include "type": "object"
- how to change multer filesize config
- Bug: TSOA does not output valid type names in Swagger definition HOT 3
- tsoa spec-and-routes compatibility issue HOT 4
- Array validation does not check if the provided value is an array HOT 9
- Cannot use @Response decorator with variables HOT 4
- TypeError: Cannot read properties of undefined (reading 'kind') HOT 2
- How use typia in combination with tsoa HOT 2
- Problem with validation when dealing with unions and deep models
- Multiple Examples with @Response Decorator not possible anymore HOT 4
- Snyk security vulnerability for inflight (one of tsoa indirect dependencies) HOT 3
- Version 6.1.0 leads to missing packages, breaks existing builds HOT 20
- v6.1.0 breaking change on Authentication middleware HOT 1
- Using `Omit` causes extra model to be output in OpenAPI file HOT 2
- Cannot read properties of undefined (reading 'length') with @UploadedFile HOT 1
- Build error: Property 'name' is missing HOT 7
- Can't Handle File and Non-File Field on multipart/form-data simultaneously HOT 4
- Can't Handle Optional File Field on multipart/form-data HOT 1
- Proposal/file upload configurations 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.