Comments (3)
retried with latest version(v1.16.3)
"github_com_rook_rook_pkg_apis_ceph_rook_io_v1.Condition": {
"type": "object",
"properties": {
"lastHeartbeatTime": {
"type": "string"
},
"lastTransitionTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"$ref": "#/definitions/github_com_rook_rook_pkg_apis_ceph_rook_io_v1.ConditionReason"
},
"status": {
"$ref": "#/definitions/k8s_io_api_core_v1.ConditionStatus"
},
"type": {
"$ref": "#/definitions/github_com_rook_rook_pkg_apis_ceph_rook_io_v1.ConditionType"
}
}
},
"github_com_rook_rook_pkg_apis_ceph_rook_io_v1.ConditionType": {
"type": "string",
"enum": [
"Connecting",
"Connected",
"Progressing",
"Ready",
"Failure",
"Deleting",
"DeletionIsBlocked"
],
"x-enum-varnames": [
"ConditionConnecting",
"ConditionConnected",
"ConditionProgressing",
"ConditionReady",
"ConditionFailure",
"ConditionDeleting",
"ConditionDeletionIsBlocked"
]
},
"github_com_rook_rook_pkg_apis_ceph_rook_io_v1.NetworkSpec": {
"type": "object",
"properties": {
"connections": {
"description": "Settings for network connections such as compression and encryption across the\nwire.\n+nullable\n+optional",
"allOf": [
{
"$ref": "#/definitions/v1.ConnectionsSpec"
}
]
},
"dualStack": {
"description": "DualStack determines whether Ceph daemons should listen on both IPv4 and IPv6\n+optional",
"type": "boolean"
},
"hostNetwork": {
"description": "HostNetwork to enable host network\n+optional",
"type": "boolean"
},
"ipFamily": {
"description": "IPFamily is the single stack IPv6 or IPv4 protocol\n+kubebuilder:validation:Enum=IPv4;IPv6\n+nullable\n+optional",
"allOf": [
{
"$ref": "#/definitions/v1.IPFamilyType"
}
]
},
"multiClusterService": {
"description": "Enable multiClusterService to export the Services between peer clusters\n+optional",
"allOf": [
{
"$ref": "#/definitions/v1.MultiClusterServiceSpec"
}
]
},
"provider": {
"description": "Provider is what provides network connectivity to the cluster e.g. \"host\" or \"multus\"\n+nullable\n+optional",
"type": "string"
},
"selectors": {
"description": "Selectors string values describe what networks will be used to connect the cluster.\nMeanwhile the keys describe each network respective responsibilities or any metadata\nstorage provider decide.\n+nullable\n+optional",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
why it doesn't generate #/definitions/github_com_rook_rook_pkg_apis_ceph_rook_io_v1.ConnectionsSpec
, instead it generate #/definitions/v1.ConnectionsSpec
but the "#/definitions/k8s_io_api_core_v1.ConditionStatus"
is ok, with full path.
api (generate swagger.json)
github.com/rook/rook/pkg/apis ( import by api, type CephCluster = rookv1.CephCluster )
above referenced two different type
NetworkSpec
https://github.com/rook/rook/blob/master/pkg/apis/ceph.rook.io/v1/types.go#L2391-L2458
Condition
https://github.com/rook/rook/blob/master/pkg/apis/ceph.rook.io/v1/types.go#L498-L505
from swag.
If there are definitions with the same name, also from different packages with the same package name, full package path will be used to distinguish them. Otherwise, the package name will be used.
from swag.
Can we have a flag etc to turn it always using 'full package path' ?
from swag.
Related Issues (20)
- Generated open api missing schema in path/query parameter HOT 1
- Request: When is the expected release date for v2? HOT 1
- Instalation issue
- Generics support cross package HOT 3
- Issue rendering Swagger UI, Blank page HOT 2
- add pattern or example to string value in a model HOT 1
- Ability to override name of enum variants generated from ordered constants
- Swag generate empty path HOT 1
- swagger-ui Parser error on line 13 end of the stream or a document separator is expected HOT 1
- Custom attributes for tags
- Renaming of models HOT 1
- Parenthesis not registering in @Router
- Provide a way to specify an external module to include HOT 1
- Incorrect tab in swag fmt causes godoc display error
- Swagger UI support one-click expand model definition (include field comment) HOT 1
- Multiple success and failure sections for a single code HOT 1
- feat: Allow struct field type to differ from enum type
- Improve operation param parsing
- Swag fails to load type in external package. 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 swag.