Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Text for duration-properties, fixes #3021 #2996

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaylinski
Copy link

@jaylinski jaylinski commented Nov 26, 2021

As examples in Audiobook state, the duration-property can be a
Text and does not have to be a Duration-class:

{
  "@context": "https://schema.org/",
  "type": "Audiobook",
  "@id": "https://archive.org/id",
  "author": "Lewis Carroll",
  "duration": "PT2H31M21S"
}

https://schema.org/Audiobook

Maybe I'm missing something and the schema already allows a Text-value, but the main reason I'm opening this PR is issue spatie/schema-org#172.

Thanks for taking your time to review this PR.

Fixes #3021.

As examples in `Audiobook` state, the `duration`-property can be a
`Text` and does not have to be a `Duration`-class.

```
{
  "@context": "https://schema.org/",
  "type": "Audiobook",
  "@id": "https://archive.org/id",
  "author": "Lewis Carroll",
  "duration": "PT2H31M21S"
}
```
@jaylinski jaylinski changed the title Allow Text for the duration-properties Allow Text for duration-properties Nov 29, 2021
@jaylinski jaylinski changed the title Allow Text for duration-properties Allow Text for duration-properties, fixes #3021 Dec 29, 2021
@github-actions
Copy link

This pull request is being nudged due to inactivity.

@github-actions github-actions bot added the no-pr-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!). label Mar 30, 2022
@jaylinski
Copy link
Author

jaylinski commented Mar 30, 2022

This PR is still relevant. I'm just not sure how I can get anyone from the schemaorg-team involved...

@chrisspradling1980
Copy link

yeah, this PR should not be moved to inactive and thank you for standing on top of this issue and allowing it to follow through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-pr-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MediaObject does not allow Text for duration-property, but according to examples Text should be allowed
2 participants