mirror of https://github.com/databricks/cli.git
another attempt at passing fmt
This commit is contained in:
parent
2e0c3928f7
commit
9ec0c5ddcd
|
@ -46,21 +46,21 @@ between json schema types and golang types
|
||||||
- int (all variants) -> number
|
- int (all variants) -> number
|
||||||
- float (all variants) -> number
|
- float (all variants) -> number
|
||||||
- map[string]MyStruct -> {
|
- map[string]MyStruct -> {
|
||||||
type: object
|
* type: object
|
||||||
additionalProperties: {}
|
* additionalProperties: {}
|
||||||
}
|
* }
|
||||||
for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#additional-properties
|
* for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#additional-properties
|
||||||
- []MyStruct -> {
|
- []MyStruct -> {
|
||||||
type: array
|
* type: array
|
||||||
items: {}
|
* items: {}
|
||||||
}
|
* }
|
||||||
for details visit: https://json-schema.org/understanding-json-schema/reference/array.html#items
|
* for details visit: https://json-schema.org/understanding-json-schema/reference/array.html#items
|
||||||
- []MyStruct -> {
|
- []MyStruct -> {
|
||||||
type: object
|
* type: object
|
||||||
properties: {}
|
* properties: {}
|
||||||
additionalProperties: false
|
* additionalProperties: false
|
||||||
}
|
* }
|
||||||
for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#properties
|
* for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#properties
|
||||||
*/
|
*/
|
||||||
func NewSchema(golangType reflect.Type, docs *Docs) (*Schema, error) {
|
func NewSchema(golangType reflect.Type, docs *Docs) (*Schema, error) {
|
||||||
seenTypes := map[reflect.Type]struct{}{}
|
seenTypes := map[reflect.Type]struct{}{}
|
||||||
|
|
Loading…
Reference in New Issue