opengeospatial / ogcapi-records

An open standard for the discovery of geospatial resources on the Web.
https://ogcapi.ogc.org/records
Other
58 stars 27 forks source link

fix up / make consistent themes definitions #246

Closed tomkralidis closed 1 year ago

tomkralidis commented 1 year ago

Follow-on of #237, as per https://github.com/opengeospatial/ogcapi-records/issues/235#issuecomment-1528834725

I also refactored the themes definition into its own schema fragment/file for reuse. In theory we could use this in https://github.com/opengeospatial/ogcapi-records/blob/master/core/standard/clause_12_local_resources_catalogue.adoc#example, but the example would then show a schema reference rather than the actual inline definition (which is valuable from a spec readability perspective, but another place to update if things change i the themes definition).

Thoughts @pvretano @m-mohr?

m-mohr commented 1 year ago

I guess a reference would be okay and simpilfy the example. Or is there any good reason why in practice someone wouldn't use a ref and reuse existing schemas?

tomkralidis commented 1 year ago

@m-mohr I've updated the example to match the queryables schema as well as the various types.

As well:

I guess a reference would be okay and simpilfy the example. Or is there any good reason why in practice someone wouldn't use a ref and reuse existing schemas?

For an implementation, yes we would ref and reuse existing schemas. The question is whether to use a $ref in the example in the specification or be explicit to demonstrate the concept?

pvretano commented 1 year ago

01-MAY-2023: Closes #235

m-mohr commented 1 year ago

My review is above (https://github.com/opengeospatial/ogcapi-records/pull/246#discussion_r1181237069) and did not receive a comment yet. Otherwise looks good.

tomkralidis commented 1 year ago

@pvretano good catch, removed. Thanks

P.S. if/once this PR is merged, it should be "Squash and Merge"d (lots of superfluous commits).