From 11d254b177eff1272fff8e9941b57184e4c8a094 Mon Sep 17 00:00:00 2001 From: Joost van der Hoff Date: Fri, 3 May 2019 12:46:03 +0200 Subject: [PATCH] Do not downcase filenames Closes #20 --- openapi2jsonschema/command.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openapi2jsonschema/command.py b/openapi2jsonschema/command.py index 0e721cb..a022738 100644 --- a/openapi2jsonschema/command.py +++ b/openapi2jsonschema/command.py @@ -164,7 +164,7 @@ def default( )) for title in components: - kind = title.split(".")[-1].lower() + kind = title.split(".")[-1] if kubernetes: group = title.split(".")[-3].lower() api_version = title.split(".")[-2].lower() @@ -198,8 +198,7 @@ def default( if ( kubernetes and stand_alone - and kind - in [ + and kind.lower() in [ "jsonschemaprops", "jsonschemapropsorarray", "customresourcevalidation",