We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58f2191 commit 9e739f3Copy full SHA for 9e739f3
1 file changed
src/swagger/object.cr
@@ -24,7 +24,7 @@ module Swagger
24
25
def self.create_from_instance(reflecting instance : T, custom_name : String? = nil, refs : Hash(String, (String | self))? = nil) forall T
26
{% begin %}
27
- instance_name = custom_name ? custom_name.as(String) : instance.class.name
+ instance_name = custom_name ? custom_name.as(String) : instance.class.name.gsub("::") {"_"}
28
properties = [] of Property
29
{% for ivar in T.instance.instance_vars %}
30
{{ iname = ivar.name.stringify }}
0 commit comments