Comments (3)
Where is your code from?
outputTypes comes from the default option values of cli.
https://github.com/swaggo/swag/blob/v1.16.2/cmd/swag/main.go#L82
https://github.com/swaggo/swag/blob/v1.16.2/cmd/swag/main.go#L199
from swag.
Where is your code from?
outputTypes comes from the default option values of cli.
v1.16.2
/cmd/swag/main.go#L82v1.16.2
/cmd/swag/main.go#L199
I didn't call it with CLI. I called this like this gen.New().Build(conf)
:
conf := &gen.Config{
// If it is not set, the default value is not found in gen.New().Build() and no error is reported
// OutputTypes: []string{"go", "json", "yaml"},
...
}
if err := gen.New().Build(conf); err != nil {
fmt.Println(err)
}
gen.New()
and func (g *Gen) Build
There is no default value set for it in the
from swag.
You have to set it yourself.
from swag.
Related Issues (20)
- Deprecate a specific route HOT 3
- `swag init` doesn't parse 'module' dependencies for types, they must be vendored HOT 4
- Docs for route are not being created HOT 2
- extension:"x-order" not working in yaml files but working in json files HOT 2
- swag init generates enums in indeterministic order HOT 1
- cannot find type definition: sql.NullTime HOT 4
- swag init does not properly generate @scope annotations
- @DeprecateRouter is not working with swag init command HOT 4
- Multiline Description support for params HOT 1
- support generate multi doc files
- nil pointer exception during execution
- Create multi-arch docker image for amd64/arm64
- --tags filter does not respect Markdown assigned to a tag
- Annotation Extensions for Documenting Multiple Response Formats HOT 1
- If I use generic array type instead of regular array it panics. HOT 2
- `swag init` generates `swagger.yaml` file in reverse order HOT 2
- Question: Will v2 be released? HOT 7
- Generated open api missing schema in path/query parameter HOT 1
- Request: When is the expected release date for v2? 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 swag.