Skip to content

Conversation

@matthewhanson
Copy link
Collaborator

Related Issue(s): #153 #289

Proposed Changes:

  1. An Asset Definition object added to the collection to describe possible assets in member Items.

PR Checklist:

  • This PR has no breaking changes.
  • I have added my changes to the CHANGELOG or a CHANGELOG entry is not required.
  • API only: I have run npm run generate-all to update the generated OpenAPI files.

@matthewhanson
Copy link
Collaborator Author

@m-mohr I have resolved your comments

@m-mohr
Copy link
Collaborator

m-mohr commented Aug 15, 2019

Thanks, I hadn't finished the review this morning, finished it now with some additional ToDos.

@matthewhanson
Copy link
Collaborator Author

Made the changes requested, except I kept title as required, that's still open for discussion.

Copy link
Collaborator

@m-mohr m-mohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. There were still some additional problems in the JSON Schema and the README, which I just fixed for your convenience.

Will approve once we have a consensus on the (not?) required title. I still think it's a problem to require it here. A script that crawls Items and updated the Collection schemas automatically would fail to comply. It either doesn't have a title, leave the schema out or have to invent one. All three options are not good.

@matthewhanson
Copy link
Collaborator Author

Ah cool, thanks for the fix, still figuring out this json-schema thing

@m-mohr m-mohr self-requested a review August 16, 2019 14:53
Copy link
Contributor

@cholmes cholmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks decent, but I think it needs more of the 'why', use cases and why implementors should make use of it.

This extension introduces a single new field, `assets` at the top level of a collection.
An Asset Object defined at the Collection level is nearly the same as the [Asset Object in Items](../../item-spec/item-spec.md#asset-object), except for two differences.
The `href` field is not required, because collections don't point to any data by themselves.
Additioanlly the remaining fields, `title` and `type` are required in the Asset Definition, in order for it to adequately describe Item assets.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor type on 'Additionally'


**Extension [Maturity Classification](../README.md#extension-maturity): Proposal**

A Collection extension to provide details about assets that are available in member Items.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should include more 'why' - what are the use cases for an implementor to make use of this. Not sure if this is the exact right place. But a bit more here would be good, and maybe flesh out more of it down below.

@m-mohr m-mohr added this to the 0.8.0 milestone Aug 19, 2019
Copy link
Collaborator

@m-mohr m-mohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the example, otherwise looks good.

@m-mohr m-mohr merged commit ad896cd into dev Aug 20, 2019
@m-mohr m-mohr deleted the asset_definition branch August 20, 2019 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants