Revisiting catalogs & schema #542
igarashitm
started this conversation in
Development
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently we integrated the properties schema generated from the main schema camelYamlDsl.json into catalogs. Now we have
proiertiesSchema
property on the catalogs ofcomponents
,dataformats
,languages
andpatterns
, as well as kamelets (kamelets-aggregate.json). In this way, while we can preserve additional data that is defined in the catalog and deliver to the UI, we also provide the properties JSON schema that is consumable for Ajv and uniforms.Going forward along this way, we might no longer need the original schema files itself for
ui
. Maybe keep the original schema filecamelYamlDsl.json
only for source code editor?, but remove the sub-schemas for each element.One thing that has to be done before that is to integrate schema for non-visual configurations, such as
beans
. Couple of things to handlebeans
top element has been removed. However there is a new catalog models-app/bean.json which describes a single entry ofbeans
. we can leverage this for Camel Routebeans
editor.routeConfiguration
,errorHandler
,onException
stays in modelsKamelet
usesRouteTemplateBeanDefinition
which is different schema from Camel Routebeans
. An option is to create acamel-catalog-aggregate-kamelet.json
and put that into it. Andcamel-catalog-aggregate-pipe.json
would have ourPipe ErrorHandler
entrymetadata
? in common file or in each catalog file of CRs? We might want it in each catalog file of CRs, and the metadata schema might need to be customized. For example kamelet metadata schema might define kamelet specific annotations in the schema or catalogLet's use here to make our needs clearer and identify the action items. Any feedback is more than welcome!
Beta Was this translation helpful? Give feedback.
All reactions