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

Improved guidance for the mediaType property #58

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Conversation

AlasdairGray
Copy link
Contributor

This PR provided improved guidance for the mediaType property on the Distribution resource. The guidance now includes examples of the values that should be provided.

A regular expression pattern has also been added to restrict values to starting with one of the IANA prefixes:

  • application
  • audio
  • font
  • image
  • message
  • model
  • multipart
  • text
  • video

Tests have been extended to check for valid mediaType patterns and include more examples of different media type values.

@AlasdairGray AlasdairGray marked this pull request as draft October 30, 2023 11:31
@AlasdairGray
Copy link
Contributor Author

Note that the minimal examples do not work due to #59

@AlasdairGray AlasdairGray marked this pull request as ready for review October 30, 2023 14:45
@AlasdairGray AlasdairGray added documentation Improvements or additions to documentation enhancement New feature or request Model labels Oct 30, 2023
@AlasdairGray AlasdairGray merged commit 3287148 into main Oct 30, 2023
1 check passed
@AlasdairGray AlasdairGray deleted the mediatype branch October 30, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request Model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants