Comments (2)
I think the best solution for this would be to disable recursive imports of the examples. It would be great if there was an annotation that could do that (I haven't found one yet), and barring that, we could try moving them out of the plugins directory.
I found this easy to reproduce, so I'll experiment with some other directory organizations.
from gnostic.
I think the best solution for this would be to disable recursive imports of the examples. It would be great if there was an annotation that could do that (I haven't found one yet),
Another option that might work would be to use something like // +build example
and update the Makefiles/etc. to run go test -tags example
.
I found this easy to reproduce, so I'll experiment with some other directory organizations.
Thanks!
from gnostic.
Related Issues (20)
- Import of gnostic-models and gnostic generated code leads to panic HOT 8
- We are unable to detect the CVE-2022-28948 vulnerability through our vulnerability scanning.
- protoc-gen-openapi: Enum types that use stringified boolean values like `"TRUE"` are treated as the real boolean values HOT 2
- Openapiv3 doesn't able to generate of type map<string, bool> in protobuf
- panic: proto: message openapi.v2.AdditionalPropertiesItem is already registered
- protoc-gen-openapi BUG HOT 3
- OpenAPI Generation Issue: Empty Specification for Protocol Buffer Service HOT 6
- How to set example for the field which defined in protobuf file by openapi v3 property
- Util package jsonwriter do not handle escape and null value
- The query FieldOptions custom example parameter does not work, the body succeeds, why?
- Cannot build due to deprecated go module github.com/golang/protobuf
- v0.7.0 isn't available on pkg.go.dev and the latest install fails HOT 1
- Proto to OpenAPIv3 - How to annotate Query Parameters as "required"? HOT 1
- Can protoc-gen-openapi generate v3.1.0 openapi file
- Default to gRPC path if no mapping is provided
- [bug] OpenAPI 3: schema items - Value MUST be an object and not an array
- how to gen protobuf.Any type?
- unused message don't gen swagger ? HOT 1
- [protoc-gen-openapi] Path Variable and Request Parameters can not pick field options from message body properties
- response_or_reference ref is not generated correctly
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 gnostic.