File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
7
7
## [ Unreleased]
8
8
9
+ ### Fixed
10
+
11
+ - use-titles: Use $ref'erring title if available https://github.com/OpenDataServices/flatten-tool/pull/368
12
+
9
13
## [ 0.15.2] - 2020-10-29
10
14
11
15
### Fixed
Original file line number Diff line number Diff line change @@ -245,7 +245,13 @@ def parse_schema_dict(
245
245
246
246
property_type_set = get_property_type_set (property_schema_dict )
247
247
248
- title = property_schema_dict .get ("title" )
248
+ if (
249
+ hasattr (property_schema_dict , "__reference__" )
250
+ and "title" in property_schema_dict .__reference__
251
+ ):
252
+ title = property_schema_dict .__reference__ ["title" ]
253
+ else :
254
+ title = property_schema_dict .get ("title" )
249
255
if title :
250
256
title_lookup [title ] = TitleLookup ()
251
257
title_lookup [title ].property_name = property_name
You can’t perform that action at this time.
0 commit comments