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

Schema metadata #47

Merged
merged 3 commits into from
Oct 5, 2023
Merged

Schema metadata #47

merged 3 commits into from
Oct 5, 2023

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Oct 3, 2023

The first step towards supporting composability is being able to identify composable schemas.

This PR identifies three "metadata fields" that we need in that context:

  • "kind": is the schema describing a core or composable resource?
  • "variant": mostly useful for composable kinds. Are we talking about a panel, a data query, ...?
  • "identifier": identifies the plugin/panel type/data query type...

This PR demonstrates how these fields can (mostly) be extracted from our current kindsys schemas. For jsonschema or OpenAPI, we would either need to include these somehow in the schemas or figure out an alternative way to access this metadata.

Other teams might also need more metadata.

This question of "where and how should we describe this metadata" is at the center of our discussions with other teams on how do we want to structure our schemas.
We should start a (design) doc to document our requirements and suggest solutions.

@K-Phoen K-Phoen requested a review from a team as a code owner October 3, 2023 14:12
Base automatically changed from schema-type to main October 5, 2023 22:14
@K-Phoen K-Phoen merged commit dc22ab5 into main Oct 5, 2023
2 checks passed
@K-Phoen K-Phoen deleted the schema-metadata branch October 5, 2023 22:20
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

Successfully merging this pull request may close these issues.

2 participants