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

Built-in types #45

Open
gregsdennis opened this issue Jun 7, 2023 · 1 comment
Open

Built-in types #45

gregsdennis opened this issue Jun 7, 2023 · 1 comment

Comments

@gregsdennis
Copy link
Member

I think the best option is to leave association between JSON Schema constructs and built-in types to the implementation.

The implementation would have to define rules to recognized specific patterns which can map to types defined by their language.

We may be able to suggest several simplistic ones, like {"type": "integer"} maps to the 32-bit integer type, if there is one, but I don't know that JSON Schema will be able to specify more than that.

@jdesrosiers
Copy link
Member

I agree that this should be implementation-defined. format can be used to hint at a type that should be used and I expect an idl vocabulary would introduce additional formats such as i32, f64, etc for this purpose. OpenAPI has some like this in their format registry.

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

No branches or pull requests

2 participants