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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently we integrated the properties schema generated from the main schema camelYamlDsl.json into catalogs. Now we have
proiertiesSchemaproperty on the catalogs ofcomponents,dataformats,languagesandpatterns, 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.jsononly 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 handlebeanstop 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 Routebeanseditor.routeConfiguration,errorHandler,onExceptionstays in modelsKameletusesRouteTemplateBeanDefinitionwhich is different schema from Camel Routebeans. An option is to create acamel-catalog-aggregate-kamelet.jsonand put that into it. Andcamel-catalog-aggregate-pipe.jsonwould have ourPipe ErrorHandlerentrymetadata? 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