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

MIME Type and Version Strings #7

Open
wants to merge 9 commits into
base: lang-tags
Choose a base branch
from
Open

Conversation

kelvinqian00
Copy link

Implement the remaining special strings (besides timestamp, duration, IRI, and lang tags): MIME types and versions.

The one exception are SHA1/SHA256 hash strings, since there is no convenient pre-existing hash object implementation (other than Google Guava's HashCode class, but we are not downloading all of Guava for this library).

@@ -38,7 +40,8 @@ public class Statement extends AbstractObject {
@JsonSerialize(using = DateTimeSerializer.class)
private ZonedDateTime stored;

private String version;
@JsonSerialize(using = SemverSerializer.class)
private Semver version;
Copy link
Member

@cliffcaseyyet cliffcaseyyet Dec 12, 2024

Choose a reason for hiding this comment

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

lol this is so overkill, but whatever its fine.

@kelvinqian00 kelvinqian00 requested a review from phleven December 12, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants