// gatherExtraSchemas produces a sorted list of extra schemas.
//
// ExtraSchemas are inlined types rendered in the same model file.
gatherExtraSchemas produces a sorted list of extra schemas.

ExtraSchemas are inlined types rendered in the same model file.
// gatherExtraSchemas produces a sorted list of extra schemas . // // ExtraSchemas are inlined types rendered in the same model file .
func gatherExtraSchemas(extraMap map[string]GenSchema) (extras GenSchemaList) {
	var extraKeys []string
	for k := range extraMap {
		extraKeys = append(extraKeys, k)
	}
	sort.Strings(extraKeys)
	for _, k := range extraKeys {
		p := extraMap[k]
		p.HasValidations = shallowValidationLookup(p)
		extras = append(extras, p)
	}
	return
}
func gatherExtraSchemas ( extraMap map [ string ] GenSchema ) ( extras GenSchemaList ) { var extraKeys [ ] string for k := range extraMap { extraKeys = append ( extraKeys , k ) } sort . Strings ( extraKeys ) for _ , k := range extraKeys { p := extraMap [ k ] p . HasValidations = shallowValidationLookup ( p ) extras = append ( extras , p ) } return }
gatherExtraSchemas produces a sorted list of extra schemas.
gatherExtraSchemas produces a sorted list of extra schemas .
// figure out if top level validations are needed