From 9ec0c5ddcd82f7223c5ee11a3144eb81da0553fe Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 19 Jan 2023 15:44:22 +0100 Subject: [PATCH] another attempt at passing fmt --- bundle/schema/schema.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bundle/schema/schema.go b/bundle/schema/schema.go index e72f02e0a..69c0fb748 100644 --- a/bundle/schema/schema.go +++ b/bundle/schema/schema.go @@ -46,21 +46,21 @@ between json schema types and golang types - int (all variants) -> number - float (all variants) -> number - map[string]MyStruct -> { - type: object - additionalProperties: {} - } - for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#additional-properties + * type: object + * additionalProperties: {} + * } + * for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#additional-properties - []MyStruct -> { - type: array - items: {} - } - for details visit: https://json-schema.org/understanding-json-schema/reference/array.html#items + * type: array + * items: {} + * } + * for details visit: https://json-schema.org/understanding-json-schema/reference/array.html#items - []MyStruct -> { - type: object - properties: {} - additionalProperties: false - } - for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#properties + * type: object + * properties: {} + * additionalProperties: false + * } + * for details visit: https://json-schema.org/understanding-json-schema/reference/object.html#properties */ func NewSchema(golangType reflect.Type, docs *Docs) (*Schema, error) { seenTypes := map[reflect.Type]struct{}{}