-
Notifications
You must be signed in to change notification settings - Fork 3
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
Import JSON Schemas #14
base: main
Are you sure you want to change the base?
Conversation
It is now possible to import basic JSON Schema as "orphan" TreeLDR layouts (layouts that are not associated to any type). Such an orphan layout can be used to generate code in the target language, but cannot be reasoned with on a semantic level. This means that translation from/to an orphan layout is impossible. Generating a JSON-LD context from an orphan layout is impossible (will generate an empty context). |
For now, a name for the schema is inferred from the |
The PR implements the JSON Schema import feature. A first version of this feature will probably be merged before the full semantics of JSON Schema can be capture, mainly because it is not possible to express some of the JSON Schema constraints in TreeLDR for now.
Progress
$id
$ref
type
properties
const
pattern
format
(for formats already known by TreeLDR)treeldr:native
property to declare native layouts.treeldr:native
property in the compileroneOf
.required
properties constraint.item
schema constraint usingschema:multipleValues
Unresolved questions