code: 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 {
  		// figure out if top level validations are needed
  		p := extraMap[k]
  		p.HasValidations = shallowValidationLookup(p)
  		extras = append(extras, p)
  	}
  	return
  }
docs: // gatherExtraSchemas produces a sorted list of extra schemas.
  //
  // ExtraSchemas are inlined types rendered in the same model file.