-
|
Hi! Firstly, Sourcemeta One looks like it will be well suited for my use case for hosting some JSON Schemas for services and teams, I'm excited to trial it. I've taken a look at some of the documentation and this Github to gain some inspiration, but I've got a few questions around best practices and any tips for hosting an instance of Sourcemeta one. For the examples used in questions, I've put up this repo: https://github.com/egnwd/jsonschema-one-testing as (fairly basic) examples in case it's useful.
which can be resolved by updating the path in service-a's schema but this then breaks local usages of is there a best practice for how to make this less fragile or do I just need to ensure my local directories match the collections I wish to host? I've seen for the Also, I think "Includes" is a mistake in the docs? It should be include as per the schema? I'm happy to split this out into separate questions/issues if it's easier, but I thought I'd start with them all in one place. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
Hey @egnwd , Thanks for reaching out! Let me unpack the comment!
Yes, the standard library is part of the Enterprise offering. We typically offer it to enterprises as part of their governance initiatives, so that they can start with a solid foundation on day 1. Not sure what's your use case but, the standard library is also free to use for non-commercial / open-source projects and specifications. Technically, nothing the standard library offers is impossible to do yourself. The benefit of getting it from us is that we pay for the purchasing many of the standards, we do extensive unit testing of every schema, performance tuning, compliance checks, and on-going maintenance. Additionally, for customers on the Enterprise plan, we extend the standard library with coverage for any standard they need, which often saves companies a lot of schema writing work.
Good point about the docs. Thanks for noticing. We'll fix it 🙏🏻
I would advise having multiple
That's a bit of an internal workaround, just to not ship the entire Enterprise standard library on the open-source version :) We just pick and ship for free the ones that the registry API itself uses. Probably not a good idea to copy that!
I think there are two ways of doing it that we've seen in the wild:
The latter is largely the "governance" recipe, so I would definitely suggest keeping it in mind. It works great in our experience, and services can always have "custom" schemas on top as needed, while periodically upstream them to the central schema/governance repository.
Definitely. We have some tooling already and this year's Google Summer of Code under the official JSON Schema organisation (starting next month) is running a project on integration this tooling on Sourcemeta offerings. So hopefully ready very soon!
This is a good point. I don't recall anybody mounting the schema on a specific path. To be honest, I'm not sure and we don't run this on the suite, but we'll test it out today and make any fixes, if needed.
Ah, another great catch. You are quite an attentive reader! 🙏🏻 I wish we could run CI checks on the docs examples somehow! |
Beta Was this translation helpful? Give feedback.
-
|
@egnwd Also, I saw the you consume EventBridge schemas: https://github.com/egnwd/jsonschema-one-testing/blob/main/schemas/common/aws/eventbridge.json. Would it be helpful to provide these as built-in collections you can directly extend? |
Beta Was this translation helpful? Give feedback.
Hey @egnwd ,
Thanks for reaching out! Let me unpack the comment!
Yes, the standard library is part of the Enterprise offering. We typically offer it to enterprises as part of their governance initiatives, so that they can start with a solid foundation on day 1. Not sure what's your use case but, the standard library is also free to use for non-commercial / open-source projects and specifications.
Technically, nothing the standard library offers is impossible to do yourself. The benefit of getting it…