Skip to content

Commit

Permalink
move OARec associations within properties
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 1, 2022
1 parent bb45a9d commit 4ba8b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygeometa/schemas/ogcapi_records/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def write(self, mcf: dict, stringify: str = True) -> Union[dict, str]:
'bbox': [[minx, miny, maxx, maxy]],
'crs': 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' # noqa
}
}
},
'associations': []
},
'associations': [],
'links': []
}

Expand Down Expand Up @@ -201,7 +201,7 @@ def write(self, mcf: dict, stringify: str = True) -> Union[dict, str]:
if all(x in value['url'] for x in ['{', '}']):
link['templated'] = True

record['associations'].append(link)
record['properties']['associations'].append(link)

if stringify:
return json.dumps(record, default=json_serial, indent=4)
Expand Down

0 comments on commit 4ba8b41

Please sign in to comment.