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

Figure out how to serialize enum-like classes into schema.org DefinedTermSets #74

Open
apirogov opened this issue Dec 12, 2022 · 1 comment
Labels
enhancement New feature or request internals Technical and subtle issues users are (usually) not aware of

Comments

@apirogov
Copy link
Collaborator

Instead of simple Literal or Enum types, it might be a good idea to provide a custom serializer with semantic info.

  • it should probably be parsed with custom pre-processing (like QuantifiedValue) from string into object
  • somehow the enum definition itself must be embedded non-redundantly in jsonschemas (when a value is used, the class must be added to the schema as well)

for the second point the schema normalization could help.

@apirogov apirogov added the enhancement New feature or request label Dec 12, 2022
@github-actions github-actions bot added the triage Freshly opened or reopened issue label Dec 12, 2022
@apirogov
Copy link
Collaborator Author

apirogov commented Jan 2, 2023

Maybe not needed after completing #75

@apirogov apirogov removed the triage Freshly opened or reopened issue label Jan 2, 2023
@apirogov apirogov added the internals Technical and subtle issues users are (usually) not aware of label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internals Technical and subtle issues users are (usually) not aware of
Projects
None yet
Development

No branches or pull requests

1 participant