-
Notifications
You must be signed in to change notification settings - Fork 13
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
be able to resolve iglu schemas in validator #210
Comments
This is a very interesting idea! If I understand it right, this means we can have schemas with properties like this:
Until now, I have always discouraged people from using the
Your patch addresses problem 1, and I think that is a huge improvement. It is a big step in the right direction. But I think we need to properly address problems 2 and 3 before we can claim that Iglu fully supports this type of external lookup. A couple of smaller implementation comments: I don't think you need the If we add this feature, I would prefer to amend the old validators instead of adding a new validator. It would be much simpler if we can say that all iglu validators support external refs, instead of saying that some do and some don't depending on how you use it. This might need a breaking change to the code, so it would be a new major release of the library (version 3). |
If iglu-client substitutes |
@voropaevp that's a good idea. It would solve the point 3 too, because if we do it in the resolver then we have better control over how threads/fibers get used. |
Implementation would need to be careful about resolution depth and possible loops. |
A way to fix the blocking issue is to change |
Hi @hamnis, I like how this brings us closer to JSON Schema compatibility, although it would be interesting to understand the use cases behind this feature. That would help us think through if any changes are needed in our UI flows as well. I assume you’d like to reuse the same “subschema” in a set of schemas? Would this be primarily for event schemas or for entity schemas? Could you give some examples? In particular, if the goal is to add the same “subschema” to multiple event schemas, it’s already possible just add that “subschema” as an entity/context to all such events. But I imagine there is something you prefer in the |
This would be reuse in other entity schemas. A particular use case is that we have a concept called We would typically attach a set of plugs to an For now we have embedded the I can see other usecases, but this is what we currently have. |
Hey! Any updates on this? Our use cases:
|
The underlying library support uri resolving for custom schemes.
Attached is a possible patch that can enable this feature
circevalidator.patch
The text was updated successfully, but these errors were encountered: