Reusing well-known JSON schemas #194
Replies: 3 comments 3 replies
-
Some work has been done to convert schema.org defined structures to JSON Schema. https://github.com/postman-open-technologies/schemaOrgJSONSchema These are not official in any sense, and not maintained, but you should be able to use the tool to update the schemas. Maintaining such structures and their semantics are outside the scope of the JSON Schema organization. |
Beta Was this translation helpful? Give feedback.
-
@Markus-Elfring What is your use case out of curiosity? I'm hoping to start maintaining a well-versioned curated collection of JSON Schema definitions here: https://github.com/sourcemeta/schemas (see https://schemas.sourcemeta.com). If there are a few you need, they are well defined and its easy to create small test suite, then I'm happy to take them in and maintain them myself. |
Beta Was this translation helpful? Give feedback.
-
I think one major roadblock to this is specific domain business requirements. Many businesses have requirements around domain models that are specific to them. Consider a If you don't, then some consumers has what they want, while others either have too much or not enough defined. If you do, then it's likely it will be insufficient for all consumers, meaning that the schema we store is merely a starting point for them, and they'll have to either compose it with some other properties (e.g. with In the end, I think the best we can hope for is defining schemas to be used as a template rather than to be used directly. I'm not sure that accomplishes what you envision. You may be able to create schemas for some standards, like Cloud Events, but even that is merely a template (meaning that the payload is still open for definition). |
Beta Was this translation helpful? Give feedback.
-
Various data structures are popular, aren't they?
💭 Thus I imagine that they would be described also by the means of JSON schemas which should be reusable.
Where may schemas be referenced from public sources for information like the following? 🤔
Beta Was this translation helpful? Give feedback.
All reactions