Skip to content
Snippets Groups Projects
Commit 9cc0ae43 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Typo

parent a252ccbf
Branches
Tags
2 merge requests!39Release 0.4.0,!33F json schema datamodel
Pipeline #19465 failed
...@@ -519,7 +519,7 @@ class JsonSchemaParser(Parser): ...@@ -519,7 +519,7 @@ class JsonSchemaParser(Parser):
def _treat_element(self, elt: dict, name: str): def _treat_element(self, elt: dict, name: str):
if name in self.model: if name in self.model:
return self.model["name"] return self.model[name]
if elt["type"] == "string": if elt["type"] == "string":
if "format" in elt and elt["format"] == "date-time": if "format" in elt and elt["format"] == "date-time":
# Treat datetime strings separately # Treat datetime strings separately
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment