MCPcopy Create free account
hub / github.com/cloudwan/gohan / getTowerSchema

Function getTowerSchema

cli/client/client_test_utils.go:131–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func getTowerSchema() map[string]interface{} {
132 return map[string]interface{}{
133 "description": "Tower",
134 "id": "tower",
135 "title": "tower",
136 "singular": "tower",
137 "parent": "castle",
138 "plural": "towers",
139 "prefix": "/v2.0",
140 "url": "/v2.0/towers",
141 "schema": map[string]interface{}{
142 "properties": map[string]interface{}{
143 "id": map[string]interface{}{
144 "format": "uuid",
145 "permission": []interface{}{
146 "create",
147 },
148 "type": "string",
149 },
150 "isMain": map[string]interface{}{
151 "permission": []interface{}{
152 "create",
153 "update",
154 },
155 "type": "boolean",
156 },
157 "sister_id": map[string]interface{}{
158 "permission": []interface{}{
159 "create",
160 "update",
161 },
162 "type": "string",
163 "relation": "tower",
164 },
165 },
166 "propertiesOrder": []interface{}{
167 "id",
168 "isMain",
169 "sister",
170 },
171 },
172 }
173}
174
175func getChamberSchema() map[string]interface{} {
176 return map[string]interface{}{

Callers 2

getSchemasResponseFunction · 0.85
client_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected