Comments (15)
@Stono just to confirm, do you know if this is also a problem in the original package?
from openapi-ts.
I would believe so yes, as the location of the model generation hasn't changed
from openapi-ts.
@Stono is naming important to you or would you be okay with names like Model, Model2? (append number if conflict) or would you prefer namespaces and having multiple imports, e.g. import type { Model } from 'client/foo/bar'
?
from openapi-ts.
@Stono could you provide your openapi spec?
cc @mrlubos : this will become an issue now that we us 1 models file?
from openapi-ts.
from openapi-ts.
@jordanshatford the issue existed prior to having a single file and continues to exist with that change, it had no impact on this issue
from openapi-ts.
@Stono bump
from openapi-ts.
@mrlubos this ticket has gone stale. It's been 20 days. We likely close this and new one can be opened if needed
from openapi-ts.
from openapi-ts.
Little flex @Stono 😂 okay, whenever you have time, would like to understand what's the correct solution for this
from openapi-ts.
Haha yeah little flex, was awesome.
I actually think my issue is with nestjs's swagger generation; i'm going to raise an issue on their repo and crosslink here so you can have a read.
I don't think there's anything this project can do as you're just acting on the swagger which is generated by nest and subsequently invalid, so feel free to close the issue!
from openapi-ts.
Unfortunately I can't use this library any more anyway because of the ESM dependency :-(
from openapi-ts.
@Stono we do plan to support both ESM and CommonJS. I am looking into it and hope to have both supported soon
from openapi-ts.
ref: #409 to support commonjs again
from openapi-ts.
@Stono All good now?
from openapi-ts.
Related Issues (20)
- schema compliance with jsr HOT 3
- Allow inlining types in services signature instead of reference to $OpenApiTs HOT 1
- Allow easy differentiation by status codes HOT 4
- invalid identifier created (starting with digits) HOT 1
- formData: mismatch Type HOT 5
- Remove service classes
- Typescript enums not generated HOT 3
- Default response types (error) override response types HOT 3
- Setting a custom httpsAgent on the generated AxiosInstance HOT 9
- Accessing Both Response Body and Headers HOT 2
- Export `OpenApiSchema` interface in the generated client HOT 2
- Pass APIRequestOptions to the response interceptor
- Client instance duplicate identifier
- Specify Line Endings HOT 1
- Dryrun flag checking causes the app not to run. HOT 8
- Inconsistent URL Encoding in Generated Services HOT 3
- Question regarding license HOT 9
- Switch to AbortSignal instead of CancellablePromise HOT 2
- Missed type for `type: ['array']`, produces unknown[] HOT 11
- Should "default" spec responses throw an error? HOT 1
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 openapi-ts.