meshery/schemas.I wanted to propose that we continue in this direction by gradually migrating the remaining locally defined API paths from meshery/meshery into meshery/schemas, aligning with the approach used in Meshery Cloud.
The long term goal would be to make meshery/schemas the single source of truth for API contracts across both repositories, with future API changes originating from schemas and propagating outward.
Why this direction could be beneficial:
--
You received this message because you are subscribed to the Google Groups "Meshery Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@meshery.io.
To view this discussion visit https://groups.google.com/a/meshery.io/d/msgid/developers/CANuiXpyNQZQFSGwsbfxvv2aNuobrHb5VNtNvy4AsMCSboHytMA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/meshery.io/d/msgid/developers/3A0F519C-1C6C-4F5C-A241-C3C1248FD603%40layer5.io.
Hi Pragalva, Lee,
This is a direction I've been actively researching, and I'm glad it's being discussed formally.
From hands-on auditing of Meshery's API endpoints against meshery/schemas, a clear picture has emerged of where we stand today:
A significant portion of endpoints already use ModelDefinition, ComponentDefinition, and RelationshipDefinition from meshery/schemas internally, but the HTTP handlers wrap them in locally-defined response envelopes that are never documented in the schema repository. The schemas are doing most of the heavy lifting, but the last mile - the API contract, isn't captured.
There is also a second gap: a large number of API paths simply don't exist in any api.yml file within meshery/schemas. The data models exist, but the endpoint documentation doesn't, meaning tools and clients can't reliably auto-generate or validate against them.
On Lee's points:
A phased approach starting with endpoints where the schema types are already embedded internally seems like a natural first step, the schemas are mostly there, it's just about removing the local envelopes and letting the schema types flow directly through.
Happy to contribute more concrete findings or help scope specific endpoints for a first migration batch.
Best,
Yash
To view this discussion visit https://groups.google.com/a/meshery.io/d/msgid/developers/3A0F519C-1C6C-4F5C-A241-C3C1248FD603%40layer5.io.