another attempt at passing fmt

This commit is contained in:
Shreyas Goenka 2023-01-19 15:44:22 +01:00
parent 2e0c3928f7
commit 9ec0c5ddcd
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 13 additions and 13 deletions

View File

@ -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{}{}